Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


SDL_image linking problems

This topic is 5220 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m getting a fatal link error which reports of ''invalid or corrupt '' sdl_image.dll file. I downloaded the both the binary and source for sdl_image. Then in my program I did "#include "sdl_image.h" (apart from sdl.h), and in the LINKS property (in VC++) I added sdl_image.dll. And I got the above error. So, then I tried recompiling the source and generating a new sdl_image.dll. This compiled perfectly and I tried using the new sdl_image.dll file, but I still get the same error, even though I have overwritten the old dll with the new one. Am I missing any step apart from including the .h file and linking the dll in project settings? "There is no dark side of the moon." - Pink Floyd

Share this post

Link to post
Share on other sites
Don't include the dll in your linker settings directly. Instead link against the export library for the dll. If you compiled your own version, a copy of the export library should be in the same directory with the generated dll.

edit: it should be called SDL_image.lib. (If you had downloaded the developers version of the runtime, a copy should also be in that zip file.)

[edited by - SiCrane on April 5, 2004 4:37:26 AM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!