Cygwin compile error.. help me!

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
zerofly
Posts: 2
Joined: Sat Jun 03, 2006 1:21 pm

Cygwin compile error.. help me!

Post by zerofly »

Hi~

Well, when I try to compile something, it show me an error.

Can someone help me? Please..

$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -c -o main.o mai
n.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -L. -L/usr/local/
pspdev/psp/sdk/lib main.o -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk
-lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspus
er -lpspkernel -o hello.elf
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [hello.elf] Error 1
$ make
...

psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -Ilibnet -Ilibvnc -O1 -G0 -Wall
-g -mgp32 -mlong32 -DVERSIONSTRING="\"PSPVNC v1.2.1\"" -L. -L/usr/local/pspdev/
psp/sdk/lib main.o menu.o pspvnc.o vncdbg.o dialog.o pg.o nlh.o loadutil.o lib
vnc/d3des.o libvnc/vncauth.o libvnc/sockets.o libvnc/rfbproto.o libvnc/rawencodi
ng.o libvnc/ultravnc.o libvnc/corre.o libvnc/rre.o lzo/minilzo.o tmp/newicon.o t
mp/unkicon.o tmp/tuxicon.o tmp/xbxicon.o tmp/macicon.o tmp/winicon.o tmp/buttons
.o tmp/font.o tmp/font2.o tmp/plugbmp.o tmp/menubmp.o tmp/splashbmp.o tmp/check.
o tmp/nocheck.o tmp/opticon.o tmp/neticon.o tmp/homeicon.o tmp/five.o tmp/ten.o
tmp/fifteen.o tmp/twenty.o tmp/menusel.o tmp/gauge1.o tmp/gauge2.o tmp/gauge3.o
tmp/gauge4.o tmp/gauge5.o tmp/scrollicon.o tmp/mouseicon.o tmp/vkbicon.o tmp/dis
icon.o tmp/dpadicon.o -lpspwlan -lpspgu -lpsppower -lpspdebug -lpspdisplay -lpsp
ge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolve
r -lpsputility -lpspuser -lpspkernel -o vnc.elf
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [vnc.elf] Error 1
zerofly
Hexstr
Posts: 5
Joined: Tue May 23, 2006 5:07 am

Post by Hexstr »

The compiler is looking for a library named libc.a in the library folders and it can't find it. Make sure you have libc compiled.
zerofly
Posts: 2
Joined: Sat Jun 03, 2006 1:21 pm

Thanks for the info Hexstr.

Post by zerofly »

Thanks for the info Hexstr : )
zerofly
Post Reply