I am trying to use sdl2-image
, but I get the following error:
Failed Error: Failed loading libpng16.dll: The specified module could not be found.
Using:
#include <iostream>
#include "SDL2/SDL_image.h"
int main(int argc, char* args[]) {
if (!(IMG_Init(IMG_INIT_PNG))) std::cout << "Failed Error : " << SDL_GetError() << std::endl;
return 0;
}
I am using Visual Studio compiler with ninja build system and vcpkg
in clion
.
There should be no error when using IMG_Init
but I keep geting the error.