OpenSSL errors - ClamAV build on Windows 10

两盒软妹~` 提交于 2020-01-07 03:08:17

问题


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.

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: error C1083: Cannot open include file: 'openssl/ssl.h' No such file or directory

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!


回答1:


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.

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.



来源:https://stackoverflow.com/questions/34539175/openssl-errors-clamav-build-on-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!