| View previous topic :: View next topic |
| Author |
Message |
ddgFFco
Joined: 20 Sep 2005 Posts: 11
|
Posted: Fri Jan 27, 2006 9:22 pm Post subject: "libcglue.c" Errors |
|
|
Hey, I’m having some problems linking my app. I used to be able to compile/link everything fine when I was using the traditional cygwin.bat and including build.mak into my makefiles. But I have recently moved to the eclipse IDE and completely written my own makefile, problem is I now get linker errors (I have changed my code so that may affect it, but I don’t see how) I also don’t see what build.mak is doing that I’m not, anyway here are the errors:
| Code: |
make -k BUILDPLATFORM=PSP build
psp-g++ -L../CE/Lib/PSP -L/usr/local/pspdev/psp/sdk/lib ./Objs/PSP/Main.o ./Objs/PSP/Clip_TestImage.o -lCE -lpspgum -lpspgu -lm -lpspdisplay -lpspge -lc -lstdc++ -lpspsdk -lpsputility -lpspuser -lpspkernel -o ./Bin/PSP/Main.elf
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(_Exit.o): In function `_exit':
../../../../../../newlib/libc/sys/psp/libcglue.c:696: undefined reference to `sceKernelSelfStopUnloadModule'
../../../../../../newlib/libc/sys/psp/libcglue.c:703: undefined reference to `sceKernelExitThread'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(_Exit.o): In function `__psp_libc_init':
../../../../../../newlib/libc/sys/psp/libcglue.c:729: undefined reference to `sceKernelStdin'
../../../../../../newlib/libc/sys/psp/libcglue.c:733: undefined reference to `sceKernelStdout'
../../../../../../newlib/libc/sys/psp/libcglue.c:737: undefined reference to `sceKernelStderr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(_fstat.o): In function `_fstat':
../../../../../../newlib/libc/sys/psp/libcglue.c:479: undefined reference to `sceIoLseek'
../../../../../../newlib/libc/sys/psp/libcglue.c:481: undefined reference to `sceIoLseek'
../../../../../../newlib/libc/sys/psp/libcglue.c:482: undefined reference to `sceIoLseek'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(_lseek.o): In function `_lseek':
../../../../../../newlib/libc/sys/psp/libcglue.c:263: undefined reference to `sceIoLseek'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(_open.o): In function `_open':
../../../../../../newlib/libc/sys/psp/libcglue.c:191: undefined reference to `sceIoOpen'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(_read.o): In function `_read':
../../../../../../newlib/libc/sys/psp/libcglue.c:234: undefined reference to `sceIoRead'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(_sbrk.o): In function `_sbrk':
../../../../../../newlib/libc/sys/psp/libcglue.c:434: undefined reference to `sceKernelAllocPartitionMemory'
../../../../../../newlib/libc/sys/psp/libcglue.c:436: undefined reference to `sceKernelGetBlockHeadAddr'
../../../../../../newlib/libc/sys/psp/libcglue.c:430: undefined reference to `sceKernelMaxFreeMemSize'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(_sbrk.o): In function `__psp_free_heap':
../../../../../../newlib/libc/sys/psp/libcglue.c:456: undefined reference to `sceKernelFreePartitionMemory'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(_write.o): In function `_write':
../../../../../../newlib/libc/sys/psp/libcglue.c:250: undefined reference to `sceIoWrite'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(_close.o): In function `_close':
../../../../../../newlib/libc/sys/psp/libcglue.c:218: undefined reference to `sceIoClose'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(_stat.o): In function `_stat':
../../../../../../newlib/libc/sys/psp/libcglue.c:536: undefined reference to `sceIoGetstat'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libc.a(chdir.o): In function `chdir':
../../../../../../newlib/libc/sys/psp/libcglue.c:97: undefined reference to `sceIoDopen'
../../../../../../newlib/libc/sys/psp/libcglue.c:102: undefined reference to `sceIoDclose'
../../../../../../newlib/libc/sys/psp/libcglue.c:104: undefined reference to `sceIoChdir'
collect2: ld returned 1 exit status
make: *** [build] Error 1
|
(libCE is self coded)
Any idea whats wrong? Any more libs I should be linking with? Is the order wrong? … need more info?
Thanks |
|
| Back to top |
|
 |
Jim

Joined: 02 Jul 2005 Posts: 487 Location: Sydney
|
Posted: Sat Jan 28, 2006 6:28 am Post subject: |
|
|
| Quote: | | Any more libs I should be linking with? |
At least pspkernel and libc. Check out what was in build.mak. _________________ http://www.dbfinteractive.com |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
|
| Back to top |
|
 |
ddgFFco
Joined: 20 Sep 2005 Posts: 11
|
Posted: Sun Jan 29, 2006 8:27 am Post subject: |
|
|
Odd, but adding another -lc to the front of the libraries worked, thanks. |
|
| Back to top |
|
 |
|