[SDL] SDL_Image compiler errors on PB2 (OSX)
Priest
priest at pokedpixel.de
Sat Aug 31 17:22:00 PDT 2002
Hi.
I've got a problem compiling my project (and even a very simple project)
containing the SDL_Image Framework under OSX (Projectbuilder 2, April).
For example:
- I generate a new "SDL_Application"
- I link the SDL_Image.Framework, (the devel one), placed in
~/library/frameworks
- 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 `;' after
`SDLCALL'
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?
More information about the SDL
mailing list