MenüHomeBlogMagic

OpenSSL Build Errors

List of all Build Errors i had with OpenSSL.

.\crypto\cryptlib.c(864) : error C2220

The following error happens, because Visual Studio 2013 and higher Versions marks GetVersion() as deprecated an openssl will build with Warning as error (/WX).

.\crypto\cryptlib.c(864) : error C2220: warning treated as error - no 'object' file generated
.\crypto\cryptlib.c(864) : warning C4996: 'GetVersion': was declared deprecated

This Error happens up to now under following Conditions:

  • Visual Studio >= 2013
  • OpenSSL < 1.1.0.0
  • x86 Target

To avoid this warning with simple methods:

  • The best way is to use a newer Version of openssl!
  • Edit failing sources and mark warning as ignore
  • My build scripts are removing /WX to keep it working
Permalink: https://adirmeier.de/Blog/ID_159
Tags: Blog, C/C++, OpenSSLvon am 2017-08-22