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++ > What programs should I start out with?

#120252 - hybrid_goomba - Fri Mar 02, 2007 1:17 am

I already have Visual C++ Express Edition so is that a good one to use? Also I need to know how to convert the c/c++ program into a format recognized by the GBA. Last, If someone could tell me where to get all these programs and things that would be great.
_________________
Why can't we have images in our signatures?

#120271 - tepples - Fri Mar 02, 2007 4:32 am

hybrid_goomba wrote:
I already have Visual C++ Express Edition so is that a good one to use?

I don't know of any tutorials to get GCC to work with Visual C++ Express, but someone else might.

Quote:
Also I need to know how to convert the c/c++ program

There is no language C/C++, just as there is no game console GameCube/Wii.

Quote:
into a format recognized by the GBA.

First step is that you'll need to throw out everything you know about the Windows API. This will be easier if the front end (graphics, sound, and input) and the back end (game logic) of your product are well separated.

Quote:
Last, If someone could tell me where to get all these programs and things that would be great.

Start with devkitpro.org. You'll want to download devkitPro Updater and install devkitARM, libgba, and GBA examples.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#120346 - hybrid_goomba - Sat Mar 03, 2007 1:57 am

yes, but there is a programming language called C, a programming language called C++, a game console called the gamecube, and a console named the Wii.
_________________
Why can't we have images in our signatures?

#120371 - keldon - Sat Mar 03, 2007 9:50 am

Download the devkit from the devkitpro site that was just recommended. Forget the visual c++ ide, none of the compilers are for gba. next go to the beginners forum and check out the Beginners FAQ.

#120409 - Sausage Boy - Sat Mar 03, 2007 7:04 pm

It is quite easy to set up Visual C++ to work with makefiles and use devkitARM, though.
_________________
"no offense, but this is the gayest game ever"

#120414 - keldon - Sat Mar 03, 2007 7:24 pm

Sausage Boy wrote:
It is quite easy to set up Visual C++ to work with makefiles and use devkitARM, though.


But is it easier to just use the IDE provided with devkitPro and is he only using the Visual C++ because he is under the impression it is better or because he is more comfortable using it. And also is it possible that all the features that are good in Visual C++ are redundant in this situation!

From the post it appears that the person is likely to be a newcomer and has merely taken the first steps in making sure that he, or she has all the right available tools and started off with downloading visual c++ express. I could [of course] be wrong, but from the post it does seem the most likely case.

#120425 - Sausage Boy - Sat Mar 03, 2007 8:12 pm

You're right of course. I just thought you made it sound like Visual C++ was totally useless for homebrewing. I agree that hybrid_goomba (awesome name by the way) is better off using Programmer's Notepad, where the .nds file is merely a few keystrokes away.
_________________
"no offense, but this is the gayest game ever"

#120441 - HyperHacker - Sat Mar 03, 2007 9:18 pm

If you can afford it, I highly recommend Textpad for an IDE for just about any language. It's great as a plain text editor too, though I still wouldn't say it's light enough to replace Notepad for just plain writing notes (and hiding the screen quickly <_< >_>).
_________________
I'm a PSP hacker now, but I still <3 DS.

#120467 - Ant6n - Sat Mar 03, 2007 11:54 pm

i'd recommend eclipse - check beginners faq

#120473 - wintermute - Sun Mar 04, 2007 1:35 am

tepples wrote:
hybrid_goomba wrote:
I already have Visual C++ Express Edition so is that a good one to use?

I don't know of any tutorials to get GCC to work with Visual C++ Express, but someone else might.


There's http://www.devkitpro.org/visual-++-express.shtml


HyperHacker wrote:

If you can afford it, I highly recommend Textpad for an IDE for just about any language. It's great as a plain text editor too, though I still wouldn't say it's light enough to replace Notepad for just plain writing notes (and hiding the screen quickly <_< >_>).


Personally I prefer UltraEdit, it's served me well for a number of years. As far as my windows install is concerned, UE *is* notepad :) ( I got totally fed up with notepad's inability to deal with unix line endings )



Ant6n wrote:
i'd recommend eclipse - check beginners faq


I really don't understand why people keep recommending this thing. I find it slow, bloated, and generally gets in the way of what I'm trying to do.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#120499 - gauauu - Sun Mar 04, 2007 4:46 am

Ant6n wrote:

I really don't understand why people keep recommending this thing. I find it slow, bloated, and generally gets in the way of what I'm trying to do.


I felt that way for a long time. But for java, if you have a pretty kickin' machine, it actually ends up being really nice. For C/C++, it's not nearly as useful, but still pretty convenient and customizable, once you understand how it does things (which is a little different than a lot of tools).

#120512 - Ant6n - Sun Mar 04, 2007 7:26 am

well, i like eclipse because its generally a pretty good editor for code despite the feep; in c/c++ its not as good as in java, but still the best i used for homeburew, and i like the debugging alot alot.
its not the fastest program but with a relatively decen cpu/ram this shouldnt be a problem.

#120534 - kusma - Sun Mar 04, 2007 2:09 pm

I prefer UltraEdit+make for crossdev-stuff, and VS2005 for native stuff.