GP32 Little help geting started on c++


Nelligan

Still Fresh
Joined
Aug 22, 2003
Messages
67
Hi, I'm using minigp32 and I'm trying to understand how to code in c++ with it. I have the gcctest and it works fine. It seems that it uses g++ to compile the cpp sources. But I don't understand the make files and what makes them thick. So I'm unable to compile a working version of any other c++ sources. I tried adding and removing lines in the make file using only common sense(it's all I got for now :)) but without success. What I would like is a working c++ template with the SDL library included. Just an empty main function would suffice to get me started. My attemps, when they compile, cause the GP32 to reset.

If anyone as the time to help me on this one, it would be greatly appreciated. :)
 
i have this problem too ... it would be nice if anyone can post a tutorial how to make makefiles
 
1) The GP32 will reset when it returns out of GpMain(). This is the intended action. If you don't want it to reset, put it into an infinite loop.

2) Take a look at http://visual-mingw.sourceforge.net/

But to be specific...

It will compile all C or CPP files that are named the same as the object files under OBJS. So gpmain.o will compile gpmain.c/gpmain.cpp, and gpstart.o will compile gpstart.c/gpstart.cpp

Hope this helps.
 
Back
Top