Sorry, i did not see that you tried to use dev-c++ -
My comment is about visualstudio c++
I’ve stopped 16.484 spam messages. You can too!
Get your free, safe spam protection at
http://www.cloudmark.com/spamnetsig/
-----Urspr?ngliche Nachricht-----Von: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] Im Auftrag von
Andre Krause
Gesendet: Donnerstag, 8. Mai 2003 22:35
An: sdl at libsdl.org
Betreff: AW: [SDL] Using SDL_Image with Dev-C++
Sdl_image comes with precompiled libs for zlib, libpng1 and libjpeg.
These are probably not compiled in the same code-generation - mode you
use. You MUST compile all your code using the same codegeneration.
I personally use “multithreaded”, to avoid the need to include the
runtime dlls of visual studio. The best thing you can do is to download
libpng, zlib and libjpeg and recompile them in the mode you want.
I had a week of troubles because of the static libvorbis delivered with
sdl_mixer - this lib was compiled in single threaded modus (im not sure)
and i got endless conflicting libs error messages.
I’ve stopped 16.484 spam messages. You can too!
Get your free, safe spam protection at
http://www.cloudmark.com/spamnetsig/
-----Urspr?ngliche Nachricht-----
Von: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] Im Auftrag von
Jean-Charles Frenette
Gesendet: Mittwoch, 7. Mai 2003 18:59
An: sdl at libsdl.org
Betreff: [SDL] Using SDL_Image with Dev-C++
I’ve been fooling around with the idea of a 2D engine recently, and
since I don’t want BMP-only support I want to use SDL_Image.
I have compiled SDL_Image as a static library under Dev-C++. When I try
to call functions within SDL_Image, Dev-C++'s linker gives me the
following error messages:
[Linker error] undefined reference to SDL_RWFromFile' [Linker error] undefined reference to
SDL_SetError’
[Linker error] undefined reference to `SDL_SetError’
I am linking SDL with my whole project, and it normally works like a
charm. I have the following options set in my project options, under the
linker tab:
-lmingw32
-lSDLmain
-lSDL
-lSDL_image
-mwindows
I know the problem is tied to SDL_Image functions because whenever I
stop using them, my program compiles successfully. My guess is that
maybe I didn’t compile the library correctly. What I did to compile it
was just start a new Static Library project, added all the .c files that
were in the SDL_Image package, set my linker options to the same as
above except for the -lSDL_Image line and compiled away. It did give me
a .a file, called SDL_Image, which I renamed libSDL_Image.a so that it
would be easily useable within the mingw32 environment. My library file
is 11k, if it makes any difference.
As I said, I think it has something to do with my initial compiling of
the library…Just not sure what it might be.
Thanks!
MSN 8 helps HYPERLINK "http://g.msn.com/8HMIENCA/2752??PS="ELIMINATE
E-MAIL VIRUSES. Get 2 months FREE*.
_______________________________________________ SDL mailing list
SDL at libsdl.org http://www.libsdl.org/mailman/listinfo/sdl
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl