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.)
Show differencesHistory of post edits
Posted 20 December 2012 - 12:49 PM
Hmm? I don't see a call to IMG_Init anywhere...