forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"libcglue.c" Errors

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
ddgFFco



Joined: 20 Sep 2005
Posts: 11

PostPosted: Fri Jan 27, 2006 9:22 pm    Post subject: "libcglue.c" Errors Reply with quote

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
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Sat Jan 28, 2006 6:28 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sat Jan 28, 2006 6:32 am    Post subject: Reply with quote

Add another -lc to the front of your libraries; psp-g++ moves the first one. Or link with psp-gcc. Also read http://forums.ps2dev.org/viewtopic.php?p=31516#31516
Back to top
View user's profile Send private message
ddgFFco



Joined: 20 Sep 2005
Posts: 11

PostPosted: Sun Jan 29, 2006 8:27 am    Post subject: Reply with quote

jimparis wrote:
Add another -lc to the front of your libraries; psp-g++ moves the first one. Or link with psp-gcc. Also read http://forums.ps2dev.org/viewtopic.php?p=31516#31516


Odd, but adding another -lc to the front of the libraries worked, thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group