I’ve got a problem compiling my project (and even a very simple project)
containing the SDL_Image Framework under OSX (Projectbuilder 2, April).
- I generate a new “SDL_Application”
- I link the SDL_Image.Framework, (the devel one), placed in
- I add the header folder path (not the reference, the full path) to
"Search for headers" in my current target’s settings
- I do an #include “SDL_image.h” in the main.c
- I compile
and after this I get PLENTY of errormessages, like
[…]/SDL_image.h:46: illegal external declaration, missing
Which refers to the following line:
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadTyped_RW(SDL_RWops *src,
int freesrc, char *type);
Well, this is the nice version, in my project (which is c++) I simply get
error before “(”
Any idea how to fix this?