#23664 - LinkMx - Sun Jul 18, 2004 2:32 am
Does anybody knows how to configure DevC++ to compile GBA roms using DevkitAdvance, I have tried but I can?t manage to compile it correctly, or there is any other way to compile roms with DevC++?
#23666 - mymateo - Sun Jul 18, 2004 3:10 am
I have not heard of DevC++, but that could very well be because when I looked for a compiler, I found DevKitAdvance right away and there is nothing better as far as I am concerned.
So may I ask what is wrong with using just the DevKitAdvance? It already comes with a C++ compiler (I am assuming that DevC++ is a compiler) and is easy to use.
For instance, to compile a basic ROM you can use these simple commands in a BAT (batch) file:
set path=C:\devkitadv\bin;%path%
gcc -o hello.elf hello.c -lm
objcopy -O binary hello.elf hello.gba
(replace "hello" with the name of your C file containing your main loop)
I've found this works in almost every case I've had, except where I wanted to use the AAS (Apex Audio System), in which case I used the Makefile included with it, then just ran the DevKitAdvance (Windows 2000 command is "C:\WINNT\SYSTEM32\CMD.EXE /k cmd-rc.bat", make sure you run from same directory as the cmd-rc.bat file), changed dirs to my project where the Makefile is, and typed "make". Away it goes, and life is good.
I don't know if any of this will help, but it's a nickel's worth of free advice in any case.