gpt4 book ai didi

c++ - OpenSSL 错误 - ClamAV 在 Windows 10 上构建

转载 作者:行者123 更新时间:2023-11-28 05:54:22 25 4
gpt4 key购买 nike

我正在尝试从我从这里下载的源代码构建 ClamAV:http://www.clamav.net/downloads .我下载了 clamav-0.99.tar.gz。

我在 Visual Studio 2010 中打开下载的 win32 文件夹下的 ClamAV.sln。但是,当我构建它时,出现以下错误:

enter image description here

错误:错误 C1083:无法打开包含文件:'openssl/ssl.h' 没有那个文件或目录

我还遇到了各种未定义的错误。我没有更改任何代码,所以我不明白为什么会出现这些错误。我安装了 OpenSSL 并添加到我的 PATH,但我仍然得到它。

如有任何帮助,我们将不胜感激,谢谢!

最佳答案

将 OpenSSL header 的路径添加到需要它们的项目中。为此,请打开项目的“属性”窗口并转至 Configuration Properties -> C/C++ -> General -> Additional Include Directories

您可能还需要指定其链接库的路径。在 Configuration Properties -> Linker -> General -> Additional Library Directories 中指定文件夹,并在 Configuration Properties -> Linker -> Input -> Additional Dependencies 中指定实际文件名。

关于c++ - OpenSSL 错误 - ClamAV 在 Windows 10 上构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34539175/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com