Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!

We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Posted 20 December 2012 - 12:56 PM

It appears you haven't initialized SDL_Image with IMG_Init, so it would only be natural that IMG_LoadImage would fail. Be sure to check IMG_GetError and SDL_GetError to get extended error information if an operation (for the respective library) were to fail.

Also, if you are using Visual Studio, take note that the working directory of your executable is your project directory when running inside the Visual Studio, and the executable directory when running outside of the Visual Studio. (This can be changed in the debugging section of the project properties.)


Posted 20 December 2012 - 12:49 PM

Hmm? I don't see a call to IMG_Init anywhere...