SDL_Image compiler errors on PB2 (OSX)

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 ;' afterSDLCALL’

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?

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 ;' afterSDLCALL’

You need to upgrade your SDL development headers to version 1.2.4.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment