【问题标题】:Cannot find libeay32.lib and ssleay32.lib files when setting up openssl on windows x64在 windows x64 上设置 openssl 时找不到 libeay32.lib 和 ssleay32.lib 文件
【发布时间】:2019-08-23 21:19:45
【问题描述】:

所以我尝试在 Visual Studio 中使用 openssl 进行一些加密项目。 这些是我到目前为止所做的步骤:

  1. here下载Win64 OpenSSL v1.1.1b。

  2. 设置 Additional Include Directories 指向 oppenssl/include 目录(来自安装)

  3. 将链接器内的Additional Dependencies 设置为:libcrypto.lib
  4. 在 Linker 中设置 Additional Library Directories 以指向 openssl/lib 目录(来自安装)

现在,当我构建时,我仍然会收到很多未定义的引用错误。

根据我阅读的内容,我仍然需要包含 libeay32.libssleay32.lib,但我在我的 openssl 安装目录中的任何地方都没有找到它们。

我点击此链接寻求帮助:

How to use OpenSSL with Visual Studio

How to include openssl in Visual Studio Expres 2012 Windows 7 x64

显然我现在唯一的问题是我缺少这些文件。有人知道我在哪里可以找到它们吗?

【问题讨论】:

  • 是的,忘了说,我下载了 43 MB 的版本

标签: c++ windows visual-studio openssl


【解决方案1】:

“如何”已过时。 自 1.1.0 版以来,OpenSSL 已将其库名称更改为: libeay32.dll -> libcrypto.dll ssleay32.dll -> libssl.dll

https://github.com/arvidn/libtorrent/issues/1931

我现在看到了:

  • MD: 多线程 DLL
  • MDd:多线程调试DLL
  • MT:多线程(静态)
  • MTd 多线程(静态)调试

【讨论】:

  • 这就是我为测试附加依赖项而包含的内容,但仍然存在错误:(我正在使用 .libs 文件
  • 您知道哪些文件用于 Win X64 吗?我看到有 4 个不同的一个:MD、MDd、MT、MTd
  • @Adrian,我已经编辑了答案来解释。这够了吗?
猜你喜欢
  • 1970-01-01
  • 2016-12-22
  • 2011-02-28
  • 2022-08-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-20
  • 1970-01-01
相关资源
最近更新 更多