获取LNK1104:无法打开文件"libssl.obj"

Getting LNK1104: cannot open file "libssl.obj"

本文关键字:文件 libssl obj LNK1104 获取      更新时间:2023-10-16

经过多次互联网搜索,我发布了这个问题。 我正在尝试编译涉及openssl库的现有c ++代码。 我能够在Visual Studio 2013中成功地包含openssl头文件。而且我在Windows 8.1平台上运行该应用程序。 在编译过程中,我遇到以下错误:

LNK1104: cannot open file "libssl.obj"

我需要在链接器属性中添加libssl,libcrypto和ws2_32。不知何故,即使我包含libssl.a和libcrypto.a以及ssleay32.lib和libeay32.lib!!!!!!!!!,它也抛出了上述错误

[注意] 相同的代码库在 MinGW 中编译得很好,方法是给出

g++ ***source-files***** -lssl -lcrypto -lpthread -lws2_32

感谢您的宝贵意见。

可能你没有编译libssl.obj。还要确保libssl.lib在你的PATH环境中。