加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-14 04:34:06 所属栏目:Windows 来源:网络整理
导读:每当我尝试使用SDL_ Image的IMG_Load函数加载PNG时,它会给出错误加载libpng16-16.dll:失败.我在正确的路径中有所有正确的dll,我可以使用SDL_Image的其他部分,但由于某种原因,它无法加载libpng 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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读