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.

Beginners > save as .gba file

#137217 - sum564 - Wed Aug 08, 2007 9:51 pm

How do i save .cpp file (written for gba) into .gba file? i mean convert from cpp into gba. I'm using Visual Studio.

Thx

#137220 - Diddl - Wed Aug 08, 2007 9:57 pm

you can use visual studio only for editing your .cpp file.

for compiling .cpp into .gba you need the devkitpro available at drunkencoders page.

#137245 - Lynx - Thu Aug 09, 2007 1:43 pm

Or, http://www.devkitpro.org directly.
_________________
NDS Homebrew Roms & Reviews

#137293 - elyk1212 - Thu Aug 09, 2007 11:31 pm

Hi, In addition to devkitpro. Take note that you would benefit from using makefiles in the examples when you start out.

That is, unless you have much MAKE experience. Anyhow, this is also what establishes your target binary (.gba file), which I think is what you are getting at (with your question).

If not, you are asking how to compile cpp files, which is much more general. In your case, get devkitpro to see some examples, and type make in the root/target directory of the source tree to make a gba file. You understand that on a PC platform, one also does not save a cpp file as a exe/binary etc. The compiler performs this task by parsing and translating to architecture specific op code. If none of this makes sense, read up on make and cpp and ask away! :)

I am guessing as to your questions meaning, sorry I don't understand what you are asking, really.

#137307 - keldon - Fri Aug 10, 2007 1:17 am

If you were serious with that question, I once wrote a programming tutorial which gets you through the bare basic concepts.