Page 1 of 1

C++ linking issues

Posted: Wed Oct 12, 2005 2:39 am
by evilo
Hi guys,

I'm currently playing a bit with c++ on the PS2 and I have some problem at link time (as usual...)

here my looonng library list for linking (yeah, some rundondant stuff)
$ make all
ee-gcc -mno-crt0 -T/usr/local/ps2dev/sdk/ee/startup/linkfile -L/usr/local/ps2dev
/sdk/ee/lib \
-o bin/BurgerSpace.elf /usr/local/ps2dev/sdk/ee/startup/crt0.o src/BurgerSpaceEngine.o src/IngredientGroup.o src/IngredientSprite.o src/EnemySprite.o src/sdlmain.o -L/usr/local/ps2dev/sdk/ports/lib -lstdc++ -lc -lm -lstlport -lmc -lstdc++ -lc -lm -lgcc -lz -lpng -lflatzebra -lsdl -ljpg -lstdc++ -lc -ldebug -lkernel -lsyscall -lsdlmain -lSDL_image -lsdlmixer -lstdc++ -lc -lm -lsdl -lstlport -lstdc++ -lc -lm -lgcc -lc -lkernel
and it gives me a lots of "undefined reference" to :
_assert_
_impure_ptr
_setlocale
_ctype_
_strftime
_strtoll
_strcoll
_...

Ok I imagine that the last ones are not implemented in our sdk, but I cannot find the right order to make the first ones go away..

any hints, help ?

thank you,
evilo