   SDL_image problem
  Hey Everyone,   Long time lurker, first time poster here.  This week I decided to take my first delve into graphics programming using SDL.  So far so good, I am using Lazy Foo's tutorials as well as some other great online resources.  Will probably be picking up a reference book soon as well.   Now, to the problem...   I am tring to link SDL_image to my project and am getting a linker error (using devC++).  Error is...   cannot find -lSDL_image Id returned 1 error status   These are the linker parameters I have..."-lmingw32 -lSDLmain -lSDL_image -lSDL"   I have all the appropriate files in my project's working directory so this is quite confusing to say the least.  Anyone have any tips on what may be causing this?  
  What "appropriate" files do you have in the project directory? The linker isn't looking for SDL_image.dll, if that is what is in the project directory.Where are SDL.lib (or is it SDL.a) and SDLmain.lib located on your hard drive?And as an aside, you probably shouldn't be using Dev-C++. You can download Microsoft's fantastic IDE for free from their site. It is probably the best C++ IDE available for Windows.   ;Quote:Original post by rip-offWhat "appropriate" files do you have in the project directory? The linker isn't looking for SDL_image.dll, if that is what is in the project directory.Where are SDL.lib (or is it SDL.a) and SDLmain.lib located on your hard drive?And as an aside, you probably shouldn't be using Dev-C++. You can download Microsoft's fantastic IDE for free from their site. It is probably the best C++ IDE available for Windows.I prefer dev-c++ over Visual C++ any day of the week despite what other reasons there may be.As for the appropriate files, I have SDL.dll, SDL_image.dll, SDL_image.lib, jpeg.dll, libpng12-0.dll,and zlib1.dll (basically the endire lib directory from SDL_image) in the project directory.  SDLmain.a is in the standard Dev-C++ lib directory.   ;  Your linker is looking for the link library for the SDL_image DLL, not the DLL itself. It's probably named SDL_image.a.   ;Quote:I prefer dev-c++ over Visual C++ any day of the week despite what other reasons there may be.I used to think the same way. But when I really started to use Visual C++, you start to appreciate some of the things it gives you. The debugger in Dev-C++ is almost worse than useless. All I could ever get it to do was point me at the correct line number in the case of a segfault. That is unacceptably poor for trying to debug complex problems.That and it used to crash occasionally for me.You are only doing a disservice to yourself by refusing to to use a better tool. It is totally worth the switch.Quote:As for the appropriate files, I have SDL.dll, SDL_image.dll, SDL_image.lib, jpeg.dll, libpng12-0.dll,and zlib1.dll (basically the endire lib directory from SDL_image) in the project directory. SDLmain.a is in the standard Dev-C++ lib directory.Try moving SDL_image.lib to the same directory as "SDLmain.a".   ;Quote:Original post by rip-offQuote:I prefer dev-c++ over Visual C++ any day of the week despite what other reasons there may be.I used to think the same way. But when I really started to use Visual C++, you start to appreciate some of the things it gives you. The debugger in Dev-C++ is almost worse than useless. All I could ever get it to do was point me at the correct line number in the case of a segfault. That is unacceptably poor for trying to debug complex problems.That and it used to crash occasionally for me.You are only doing a disservice to yourself by refusing to to use a better tool. It is totally worth the switch.Quote:As for the appropriate files, I have SDL.dll, SDL_image.dll, SDL_image.lib, jpeg.dll, libpng12-0.dll,and zlib1.dll (basically the endire lib directory from SDL_image) in the project directory. SDLmain.a is in the standard Dev-C++ lib directory.Try moving SDL_image.lib to the same directory as "SDLmain.a".I switched over to VS to give it another shot.  This is the error I get now..."You should copy include/SDL_config.h.default to include/SDL_config.h"I don't have an SDL_config.h.default but SDL_config.h is most certainly in the proper directory;  Found this in SD_config.h"/* Make sure that this isn't included by Visual C++ */#ifdef _MSC_VER#error You should copy include/SDL_config.h.default to include/SDL_config.h#endif"Why is this checking to make sure it is *not* included by visual C++?  Sorry if this is a newbie question.   ;  GAH!  I'm so stupid!  When I switched from Dev-C++ to VS I didn't download the VS SDL Dev pack, D'oh!  All set for now :)   