Sdl And C++


Blah

Wanna Be Programmer
Joined
Dec 18, 2003
Messages
3,253
Age
34
Location
Oregon, USA
Website
Visit site
It would seem that the bulk of C++ related linking problems with SDL for GP32 are related to 2 include files (x_gp32.h and smf_buf.h). The problem? Chui forgot this important peice of code:

Code:
#ifdef __cplusplus
extern "C" {
#endif

[...]

#ifdef __cplusplus
}
#endif

C++ doesn't know these C functions exist without this...

Just in case you couldn't figure it out yourself, the files are attached. :)

You'll need SDL-4-GP32 and DEVKITARM R14 or later.
 
Back
Top