SDL_Image spewing more errors than you can shake a very long stick at

Rather than putting the SDL include in any special path, I move SDL (and all
my other libs, such as FreeType and SDL_Image) includes into the main mingw
includ section.

I’m getting a WHOLE bunch of errors (at the bottom of this email), and I
have no clue why they are poping up. The first set of errors I can do
nothing about, and have no clue whats causing them… I just downloaded the
library yesterday, moved the dlls to my path, and the includes to my include
directory.

The next error has to do with my use of IMG_Load function which is thus:

//stuff
SDL_Image tmp; //this object can be have an SDL_Surface assigned to it and
work happily, it’s just a little class to make it a bit safer with C++
tmp = IMG_Load(path); // path is some ‘const char*’ variable. this causes
the error…
//more stuff

Thanks,
-Jim

             from interfaceresources.h:4,
             from interfaceresources.cpp:1:

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:46: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:48: syntax error before('
C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:49: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:54: syntax error before('
C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:57: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:58: syntax error before('
C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:59: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:60: syntax error before('
C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:61: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:62: syntax error before('
C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:63: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:64: syntax error before('
C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:65: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:66: syntax error before('
C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:69: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:70: syntax error before('
C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:71: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:72: syntax error before('
C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:73: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:74: syntax error before('
C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:75: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:76: syntax error before('
C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:77: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:78: syntax error before(‘
C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image
.h:79: syntax error before (' C:/MinGWin/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/SDL_image .h:81: syntax error before(’

interfaceresources.cpp: In method Sint32 InterfaceResources::load_image(const char *, unsigned int)': interfaceresources.cpp:68: implicit declaration of functionint
IMG_Load(…)'
interfaceresources.cpp:68: no match for `SDL_Image & = int’
sdlcpp.h:43: candidates are: class SDL_Image & SDL_Image::operator =(const
SDL_Image &)
sdlcpp.h:60: class SDL_Image & SDL_Image::operator =(const
SDL_Surface *)

I think I may have found something, where is SDLCALL defined at?

-Jim> ----- Original Message -----

From: stapleton.41@osu.edu (Steven James Stapleton)
To:
Sent: Wednesday, May 15, 2002 7:59 PM
Subject: [SDL] SDL_Image spewing more errors than you can shake a very long
stick at.

Rather than putting the SDL include in any special path, I move SDL (and
all
my other libs, such as FreeType and SDL_Image) includes into the main
mingw
includ section.

I’m getting a WHOLE bunch of errors (at the bottom of this email), and I
have no clue why they are poping up. The first set of errors I can do
nothing about, and have no clue whats causing them… I just downloaded
the
library yesterday, moved the dlls to my path, and the includes to my
include
directory.

The next error has to do with my use of IMG_Load function which is thus:

//stuff
SDL_Image tmp; //this object can be have an SDL_Surface assigned to it and
work happily, it’s just a little class to make it a bit safer with C++
tmp = IMG_Load(path); // path is some ‘const char*’ variable. this causes
the error…
//more stuff

Thanks,
-Jim

             from interfaceresources.h:4,
             from interfaceresources.cpp:1:

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:46: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:48: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:49: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:54: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:57: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:58: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:59: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:60: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:61: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:62: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:63: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:64: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:65: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:66: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:69: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:70: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:71: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:72: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:73: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:74: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:75: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:76: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:77: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:78: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:79: syntax error before `(’

C:/MinGWin/bin/…/lib/gcc-lib/mingw32/2.95.3-7/…/…/…/…/include/SDL_image

.h:81: syntax error before `(’

interfaceresources.cpp: In method Sint32 InterfaceResources::load_image(const char *, unsigned int)': interfaceresources.cpp:68: implicit declaration of functionint
IMG_Load(…)'
interfaceresources.cpp:68: no match for `SDL_Image & = int’
sdlcpp.h:43: candidates are: class SDL_Image & SDL_Image::operator =(const
SDL_Image &)
sdlcpp.h:60: class SDL_Image & SDL_Image::operator =(const
SDL_Surface *)


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

I think I may have found something, where is SDLCALL defined at?

Get the latest SDL sources from CVS.

(You might get away with #defining SDLCALL to be blank, but get the latest
from CVS instead.)

–ryan.

I think I may have found something, where is SDLCALL defined at?

Get the latest SDL sources from CVS.

SDL 1.2.4 release will work too.

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

Get the latest SDL sources from CVS.

SDL 1.2.4 release will work too.

I run a perl script that chooses random posts on this mailing list and
replies “get the latest from CVS”. I find everyone is better off that way. :slight_smile:

–ryan.

Ok, Thanks.

What does SDLCALL do anyway?

I’ll get 1.2.4 since I doubt I’d be able to do much with the CVS (I cant
seem to build any binaries (DLLs) for SDL…)

-Jim