Search found 3 matches

by Rey Mafia
Sat May 26, 2007 1:23 pm
Forum: PSP Development
Topic: Problem building app in C++ with SDL
Replies: 27
Views: 6670

I solved it, just had a look at SDL_main.h:

Code: Select all

#ifdef __cplusplus
extern "C"
#endif
int main(int argc, char *argv[]) {
Thanks.
by Rey Mafia
Thu May 24, 2007 8:07 am
Forum: PSP Development
Topic: Problem building app in C++ with SDL
Replies: 27
Views: 6670

This is the full console output: user@system:~/Programs/psp/rectangles$ make psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -G0 -O2 -D_PSP_FW_VERSION=150 -L. -L/usr/local/pspdev/psp/sdk/lib rectangles.o -L/usr/local/pspdev/psp/lib -lSDLmain -lSDL ...
by Rey Mafia
Wed May 23, 2007 11:08 pm
Forum: PSP Development
Topic: Problem building app in C++ with SDL
Replies: 27
Views: 6670

I have a similar problem, I've tried compiling this code: /* rectangles.c * Draws random rectangles on screen. */ #include <SDL.h> #include <pspctrl.h> #include <stdio.h> #include <stdlib.h> int main&#40; int argc, char* argv&#91;&#93; &#41; &#123; SDL_Surface *screen; SDL_Event ...