windows – SDL_Image IMG_Load在png上失败:“加载libpng16-16.dll失败:”

前端之家收集整理的这篇文章主要介绍了windows – SDL_Image IMG_Load在png上失败:“加载libpng16-16.dll失败:”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
每当我尝试使用SDL_ Image的IMG_Load函数加载PNG时,它会给出错误加载libpng16-16.dll:失败.我在正确的路径中有所有正确的dll,我可以使用SDL_Image的其他部分,但由于某种原因,它无法加载libpng dll.我怎样才能解决这个问题?任何帮助表示赞赏.
看我的文章SDL2: Loading Images with SDL_image”:

If you’re going to run from Visual Studio,make sure the image is in the same folder as your main.cpp file; otherwise if you’re running straight from the executable,the image should be in the same folder with it.

不用说,我在这里写的关于图像的内容也适用于DLL.

原文链接:https://www.f2er.com/windows/364116.html

猜你在找的Windows相关文章