GP2X Setting Up Codeblock To Compiling For Windows Not Gp2x


Rekelon

Still Fresh
Joined
Apr 23, 2006
Messages
11
Hi, i have been spending this weekend trying to set up codeblock and i have managed to compile programs for the gp2x however when i try to compile in gcc for windows it will spit out error messages, the first time it didnt like the change directory command, so i editted them out. Next it started saying "cannot find -isdl_mixer"

the other linker options that i have included are -static -lSDL_mixer -lSDL_ttf -lSDL_image -lmikmod -lvorbisidec -lfreetype -ljpeg -lpng12 -lz -lm -lSDL -lpthread

I have tried several guides to installing sdl for window however it isn't compiling so if anyone could give me some feedback on this then i would appreciate it alot


Thanks
 
Hey thanks for the reply, i double checked and it is definately an L not an i.
Also it was that guide that i used to take me this far.

ANy other ideas?
 
Richard posted on May 18 2006 at 01:16 PM said:
Hey thanks for the reply, i double checked and it is definately an L not an i.
Also it was that guide that i used to take me this far.

ANy other ideas?
Do you really need SDL_mixer? If not, just remove it. i.e. takeout -lSDL_mixer from the compile/link line.
Also, you can search your driver for *SDL_mixer* on your drive.
with cygwin gcc, you are probably looking for a file in some lib/ directory that is called libSDL_mixer.a
If you find it in a directory, say AAA, use -L AAA on the gcc compile/link line (with cygwin relative path).
 
Last edited by a moderator:
Back
Top