微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐