Thanks jimparis, I read all threads about that issue, but I still having some problem with this.
The two -lc worked, but now I still get some errors.
these are the current errors, and again, I can only find these calls on pspuser and pspkernel.
Code: Select all
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(_write.o): In function `_write':
../../../../../../newlib/libc/sys/psp/libcglue.c:308: undefined reference to `sceIoWrite'
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(pipe.o): In function `__psp_pipe_nonblocking_write':
../../../../../../newlib/libc/sys/psp/pipe.c:293: undefined reference to `sceKernelTrySendMsgPipe'
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(pipe.o): In function `__psp_pipe_write':
../../../../../../newlib/libc/sys/psp/pipe.c:262: undefined reference to `sceKernelSendMsgPipe'
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(pipe.o): In function `__psp_pipe_read':
../../../../../../newlib/libc/sys/psp/pipe.c:218: undefined reference to `sceKernelReceiveMsgPipe'
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(pipe.o): In function `__psp_pipe_close':
../../../../../../newlib/libc/sys/psp/pipe.c:104: undefined reference to `sceKernelDeleteMsgPipe'
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(pipe.o): In function `pipe':
../../../../../../newlib/libc/sys/psp/pipe.c:54: undefined reference to `sceKernelCreateMsgPipe'
../../../../../../newlib/libc/sys/psp/pipe.c:74: undefined reference to `sceKernelDeleteMsgPipe'
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(pipe.o): In function `__psp_pipe_peekmsgsize':
../../../../../../newlib/libc/sys/psp/pipe.c:38: undefined reference to `sceKernelReferMsgPipeStatus'
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(pipe.o): In function `__psp_pipe_nonblocking_read':
../../../../../../newlib/libc/sys/psp/pipe.c:156: undefined reference to `sceKernelTryReceiveMsgPipe'
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(_close.o): In function `_close':
../../../../../../newlib/libc/sys/psp/libcglue.c:236: undefined reference to `sceIoClose'
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(_fstat.o): In function `_fstat':
../../../../../../newlib/libc/sys/psp/libcglue.c:580: undefined reference to `sceIoLseek'
../../../../../../newlib/libc/sys/psp/libcglue.c:582: undefined reference to `sceIoLseek'
../../../../../../newlib/libc/sys/psp/libcglue.c:583: undefined reference to `sceIoLseek'
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(_lseek.o): In function `_lseek':
../../../../../../newlib/libc/sys/psp/libcglue.c:345: undefined reference to `sceIoLseek'
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(_read.o): In function `_read':
../../../../../../newlib/libc/sys/psp/libcglue.c:271: undefined reference to `sceIoRead'
/home/fungos/dev/psp/dev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(_stat.o): In function `_stat':
../../../../../../newlib/libc/sys/psp/libcglue.c:642: undefined reference to `sceIoGetstat'
So, to be easier help me, this is what I'm trying to get working:
Code: Select all
psp-g++ -L`psp-config --pspsdk-path`/lib -lc -lc -lpspuser conftest.cpp
Just remembering... If I use psp-gcc with -lstdc++ it works ok. But I can't change it, because its the automatic ./configure compiler detection. Thank you for all the help, I hope I can get this library working for you people. :)
EDIT:
Ok, -fno-exceptions did the work. But I want to know more about this problem (if someone can explain me why the need for no-exceptions).