GP2X Compiling Squidgesnes


sand_man

Active Member
Joined
Nov 4, 2005
Messages
727
I am having trouble compiling the menu.lib. All I get is the .o files and this message:
Code:
arm-linux-g++.exe: .objs\actionhandler.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\actionmenu.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\checkboxmenu.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\configfile.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\filemenu.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\filemenuitem.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\font.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\image.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\launchermenu.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\main.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\menu.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\radmenu.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\selectmenu.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\separatormenu.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\squidgemenu.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\surface.o: linker input file unused because linking not done
arm-linux-g++.exe: .objs\system.o: linker input file unused because linking not done

I'm not using the makefile that came with the source because I'm trying to use code::blocks and as far as I can tell there is no way to import a makefile (I hope someone can prove me wrong here).
I am linking with these options "-static -g -I -O3 -c".
I've never compiled a .lib before so this is all new to me. Anybody have any suggestions?
 
If you use the '-c' option then you're not linking, and hence the .o input files are ignored. '-c' means preprocess, compile, and assemble, but don't link. If you are trying to link here, get rid of '-c'. If this is a pure link step, you can also get rid of '-g -I -O3', as these options don't affect linking.
 
I don't like those files as the objects codes are used to build the library. If your not using the makefiles, your probably better off just linking all the files together in one big lump.
 
That's what I'm trying to do now. But my compiler is trying to compile C++ parts as C. It's being a real pain.

[edit]
One problem leads to another. I'll try to get the makefiles working, otherwise I give up.
 
sand_man posted on Feb 23 2006 at 12:49 AM said:
That's what I'm trying to do now. But my compiler is trying to compile C++ parts as C. It's being a real pain.

[edit]
One problem leads to another. I'll try to get the makefiles working, otherwise I give up.

I don't know what dev setup you've got going, but I've got a makefile that works for me under the precompiled devkitGP2X. PM me your email address if you're interested :)
 
Last edited by a moderator:
Back
Top