forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

undefined reference

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Wed Dec 24, 2008 6:50 am    Post subject: undefined reference Reply with quote

I am porting a tiny Rubik Cube program to the psp but i get some errors when i try to compile.


1>display.cpp:(.text+0x53c): undefined reference to `glColor3d'
1>display.cpp:(.text+0x570): undefined reference to `glColor3d'
1>display.cpp:(.text+0x5a4): undefined reference to `glColor3d'
1>display.cpp:(.text+0x5d8): undefined reference to `glColor3d'
1>display.cpp:(.text+0x610): undefined reference to `glColor3d'
1>display.o:display.cpp:(.text+0x648): more undefined references to `glColor3d' follow
1>display.o: In function `draw()':
1>display.cpp:(.text+0x990): undefined reference to `glTranslated'
1>display.cpp:(.text+0x9c8): undefined reference to `glRotated'
1>display.cpp:(.text+0xa00): undefined reference to `glRotated'
1>display.cpp:(.text+0xa38): undefined reference to `glRotated'
1>display.cpp:(.text+0xa48): undefined reference to `glColorMaterial'
1>display.cpp:(.text+0xa7c): undefined reference to `glTranslated'
1>display.cpp:(.text+0xac0): undefined reference to `glTranslated'
1>display.cpp:(.text+0xb04): undefined reference to `glTranslated'
1>display.cpp:(.text+0xb48): undefined reference to `glTranslated'
1>display.cpp:(.text+0xb8c): undefined reference to `glTranslated'

It seems i did mis a GL lib but i include this in my makefile:

Code:
TARGET = rubik
OBJS = _cube.o algorithmes.o cube.o display.o interpretor.o main.o tests.o

INCDIR =
CFLAGS = -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LDFLAGS = -LC:/pspsdk/psp/lib
LIBS= -lgl -lglu -lglut -lglu -lgl -lg -lglut -lpspgu -lpspgum  -lpthread-psp -lpspvfpu -lpsprtc -lpspvram -lgl -lglu -lglut -lglu -lgl -lg

USE_USER_LIBS=1

CC       = psp-g++
CXX      = psp-g++
AS       = psp-g++
LD       = psp-g++

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Morph Sample

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Wed Dec 24, 2008 8:31 am    Post subject: Reply with quote

how many times do you wish to include these files :O
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group