gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > Dev C++ and DevkitAdvance

#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.

#23667 - col - Sun Jul 18, 2004 3:19 am

go here:
http://www.gbadev.org/tools.php?section=misc

and look at 'BuildGBA v1.1' by JointJunkie.

I've not tried it, but I think it might be what you're looking for ?

cheers

col

#23687 - LinkMx - Sun Jul 18, 2004 10:23 pm

Oh, thanx, that worked very well, for the people that doesn?t know Dec C++ is not a compiler, is a one of the best IDEs to program in C/C++ and its free. Its come with th Mingw compiler but is compatible with GCC.

http://www.bloodshed.net/devcpp.html

#23698 - yaustar - Mon Jul 19, 2004 1:10 am

http://forum.gbadev.org/viewtopic.php?t=1736
_________________
[Blog] [Portfolio]