i'm actually having some problems using the SDL with C++ code.
I have already search the forum and found a topic with a solution :
Code: Select all
extern "C" int SDL_main( int argc, char *argv[] );
int SDL_main( int argc, char *argv[] ) {
but when i run my app on my PSP the screen go black and nothing happen. I have done this small test :
Code: Select all
int SDL_main( int argc, char *argv[] ) {
int result;
result = SDL_Init( SDL_INIT_VIDEO |
SDL_INIT_AUDIO |
SDL_INIT_TIMER |
SDL_INIT_JOYSTICK );
if( !result )
exit(-1);
SDL_Quit();
return 0;
}
If anyone can help i really appreciate.
Thanks