问题
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