undefined reference

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

undefined reference

Post by jojojoris »

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: Select all

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
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

how many times do you wish to include these files :O
Post Reply