StrayPointer
StrayPointer

Reputation: 46

SDL_image is not working

I am attempting to load a png file with SDL. I have followed all instructions. The SDL2_image.dll and the SDL2.dll are located in the same folder as the executable. As is the other dlls; libjpeg-9.dll, libpng16-16.dll, libtiff-5.dll, libwebp-7.dll, and zlib1.dll. These are all located in the some folder that contains the executable.

In the file where I call the sdl command

 SDL_Surface* pTempSurface = IMG_Load("assets/animate.png");

I include the header file #include

And in my addiditional dependencies I include the SDL2.lib, SDL2main.lib and SDL2_image.lib

However I get a popup box that reads "The procedure entry point SDL_LoadFile_RW could not be located in the dynamic link library C:\Users[name]\source\repos[name][name]\Release\SDL2_image.dll"

What is it that I might be doing wrong

Upvotes: 0

Views: 2325

Answers (1)

StrayPointer
StrayPointer

Reputation: 46

I was using an older version of SDL and SDL_image. I have since started using SDL_2.0.7 and SDL_image-2.0.2. The program compiles and renders successfully now

Upvotes: 1

Related Questions