Can't compile with SDL_image

hi

i’m having trouble compiling my project using SDL_image 1.2.2.

visual C says this:

d:\programme\devstudio\vc98\include\sdl\sdl_image.h(46) : error C2146:
Syntax error : Missing ‘;’ before identifier ‘IMG_LoadTyped_RW’

and so on blah blah, 24 errors in all. how do i get rid of this? my
project settings should be correct.

thx
eik

What do you have before your “#include “SDL_image.h”” ?

-bill!On Thu, Jun 13, 2002 at 11:18:30PM +0200, Eike Umlauf wrote:

hi

i’m having trouble compiling my project using SDL_image 1.2.2.

visual C says this:

d:\programme\devstudio\vc98\include\sdl\sdl_image.h(46) : error C2146:
Syntax error : Missing ‘;’ before identifier ‘IMG_LoadTyped_RW’

looks like this:

#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glext.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>> > i’m having trouble compiling my project using SDL_image 1.2.2.

visual C says this:

d:\programme\devstudio\vc98\include\sdl\sdl_image.h(46) : error C2146:
Syntax error : Missing ‘;’ before identifier ‘IMG_LoadTyped_RW’

What do you have before your “#include “SDL_image.h”” ?

-bill!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

hi

i’m having trouble compiling my project using SDL_image 1.2.2.

visual C says this:

d:\programme\devstudio\vc98\include\sdl\sdl_image.h(46) : error C2146:
Syntax error : Missing ‘;’ before identifier ‘IMG_LoadTyped_RW’

and so on blah blah, 24 errors in all. how do i get rid of this? my
project settings should be correct.

Install SDL 1.2.4

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

aha got it: if i remove the SDLCALL statement everywhere in the
SDL_image header everything works fine… what’s that used for?

eik>

d:\programme\devstudio\vc98\include\sdl\sdl_image.h(46) : error C2146:
Syntax error : Missing ‘;’ before identifier ‘IMG_LoadTyped_RW’

and so on blah blah, 24 errors in all. how do i get rid of this? my
project settings should be correct.

Install SDL 1.2.4

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


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

aha got it: if i remove the SDLCALL statement everywhere in the
SDL_image header everything works fine… what’s that used for?

It explicitly states that SDL uses the C API stack-based calling
convention, so that you can use the distributed SDL libraries in
applications that use other calling conventions (like fastcall).

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

aha got it: if i remove the SDLCALL statement everywhere in the
SDL_image header everything works fine… what’s that used for?

It explicitly states that SDL uses the C API stack-based calling
convention, so that you can use the distributed SDL libraries in
applications that use other calling conventions (like fastcall).

More to the point: Upgrade your SDL installation, so SDLCALL will be defined.

–ryan.