2

My Visual Studio project works when OpenSSL is loaded dynamically but breaks when I use OpenSSL as a static library.

The error:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol _sscanf referenced in function _OPENSSL_cpuid_setup libcrypto32MTd.lib(cryptlib.obj)

Bilal Siddiqui
  • 349
  • 3
  • 17
Niv
  • 21
  • 4
  • [legacy_stdio_definitions.lib](https://stackoverflow.com/a/32418900/4074081) may help if you are using VS 2015 and above and OpenSSL library is precompiled by older version. – dewaffled Aug 14 '18 at 13:19
  • its work but now there are another 12 errors like that: LNK2019 unresolved external symbol ___iob_func referenced in function _openssl_load_privkey – Niv Aug 14 '18 at 13:40
  • This one looks [almost impossible](https://stackoverflow.com/a/34655235/4074081) to fix correctly. So, you'd better recompile OpenSSL or download binary precompiled with your version of Visual Studio. – dewaffled Aug 14 '18 at 14:41

0 Answers0