栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

Error opening dll library错误的解决

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Error opening dll library错误的解决

Error opening dll library 这个错误错误,有时出现在非开发电脑上。究其原因,是因为引用的dll还有其他dll的依赖。而在发布时,其他电脑上因为不存在这个所依赖的dll所以提示错误。

有资料说:

> DLL is 16 bit and thus incompatible.
> DLL is not in a searchable directory.
> DLL connects to another DLL that cannot be found.
> DLL has the same name as another already loaded into memory.
> DLL is corrupted or in an incompatible format.

我封装了一个openssl,用c++builder封装的,提示这个错误,用depends这工具加载dll,看第一层dll依赖关系,猜测可能缺少cc3260mt.dll,拷贝后果然解决了问题。

最后查资料说是静态动态链接的问题。去掉Use dynamic RTL选项。编译后dll体积变大,但是就不需要cc3260mt.dll了。在win10可运行正常,但是xp仍然报错,还需要努力。。。

最后找到原因,原来用vc编译好的openssl的库libeay32.dll 需要能支持xp才行。重新下载了一个别人已经编译好的版本就可以了。(提示,编译后的openssl.exe在xp上可以执行就能判断出来)

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/304403.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号