本文介绍了OpenSSL错误-Windows 10上的ClamAV构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to build ClamAV from source which I downloaded from here: http://www.clamav.net/downloads. I downloaded clamav-0.99.tar.gz.

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

I open ClamAV.sln under the win32 folder of the download inside Visual Studio 2010. However, when I build it I get these errors:

错误:error C1083: Cannot open include file: 'openssl/ssl.h' No such file or directory

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

I also get a variety of undefined errors. I didn't change any code so I don't understand why I'm getting these errors. I installed OpenSSL and added to my PATH but I'm still getting it.

任何帮助将不胜感激,谢谢!

Any help would be appreciated, thank you!

推荐答案

将OpenSSL标头的路径添加到需要它们的项目中.为此,请打开项目的属性"窗口,然后转到Configuration Properties -> C/C++ -> General -> Additional Include Directories.

Add the path to OpenSSL headers to the projects that need them. To do so, open the project's Properties window and go to Configuration Properties -> C/C++ -> General -> Additional Include Directories.

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

You will probably need to specify the path to its link libraries also. Specify folders at Configuration Properties -> Linker -> General -> Additional Library Directories and specify actual file names at Configuration Properties -> Linker -> Input -> Additional Dependencies.

这篇关于OpenSSL错误-Windows 10上的ClamAV构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 00:10