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 function
int
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 *)