PDA

View Full Version : C compilation problems...



nomi
September 20th, 2006, 13:42
I have a problem when compiling a game made in C. Even when i tried to compile 2 of the games that came straight from a tutorial. heres what i get when i try to compile(it already exported the other files required, but for some reason it gives a prob with the .elf file)

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\ARSALANHASHMANI>cd C:\projects\mine

C:\projects\mine>make
psp-gcc -I. -I/cygdrive/c/pspdev/psp/sdk/include -O2 -G0 -Wall -L. -L/cygdrive/
c/pspdev/psp/sdk/lib main.o graphics.o framebuffer.o -lpspgu -lpsppower -lpng
-lz -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet
_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o sna
ke.elf
/cygdrive/c/pspdev/bin/../lib/gcc/psp/4.0.2/../../../../psp/bin/ld: cannot find
-lz
collect2: ld returned 1 exit status
make: *** [snake.elf] Error 1

C:\projects\mine>

its juss not snake.ell whatever name i put as the elf it gives a error. PLZ HELP!!!

Mr.Modem
September 20th, 2006, 17:00
You need Zlib. Get it from ps2dev's svn server.

Zion
September 21st, 2006, 13:55
i also got that, somethimes it happens even with the libarys installed

psiko_scweek
September 23rd, 2006, 10:52
make sure that you have Zlib installed correctly, if need be, just redownload it from the SVN and install it again. Be sure to follow the instuctions in the README.PSP for Zlib on how to install it, that and any other lib.