I'm trying to setup my own makefile for my psp projects, but I'm a bit lost with the libc library. I really dont know what should I inlude in the link stage to make things work. Here is my link line and the errors I got. Some help would be very appreciated :)
Code: Select all
psp-gcc src/tinyxml/tinyxml.o src/tinyxml/tinystr.o src/tinyxml/tinyxmlerror.o src/tinyxml/tinyxmlparser.o src/psptest.o -L/usr/local/pspdev/psp/sdk/lib -lpspgum -lpspgu -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lpsplibc -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o outdir/psptest.elf
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(lib_a-strtod.o): In function `strtod':
../../../../../newlib/libc/stdlib/strtod.c:1155: multiple definition of `strtod'
/usr/local/pspdev/psp/sdk/lib/libpsplibc.a(strtod.o):/home/jacobo/psptoolchain/build/pspsdk/src/libc/stdlib.c:757: first defined here
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(lib_a-strtol.o): In function `strtol':
../../../../../newlib/libc/stdlib/strtol.c:222: multiple definition of `strtol'
/usr/local/pspdev/psp/sdk/lib/libpsplibc.a(strtol.o):/home/jacobo/psptoolchain/build/pspsdk/src/libc/stdlib.c:874: first defined here
collect2: ld returned 1 exit status
Error, could not find file outdir/psptest.elf
make: *** [outdir/psptest.elf] Error 1
psp-fixup-imports outdir/psptest.elf