0

The code compiles successfully with x86 platform but doesn't work with x64.The library dependencies have been added (Openssl\lib) so its clear that it can find libssl.lib and libcrypto.lib.

Error:

LNK2001 unresolved external symbol EVP_aes_256_gcm
LNK2001 unresolved external symbol EVP_CIPHER_CTX_ctrl
LNK2001 unresolved external symbol EVP_DecryptFinal
LNK2001 unresolved external symbol EVP_DecryptInit_ex
LNK2001 unresolved external symbol EVP_DecryptUpdate
LNK2001 unresolved external symbol EVP_CIPHER_CTX_new

Linker -> Input -> Additional Dependencies:

libssl.lib;libcrypto.lib;%(AdditionalDependencies)

Linker-> General -> Additional Library Directories:

$(ProjectDir)dependencies\OpenSSL\lib\;%(AdditionalLibraryDirectories)
zbx0310
  • 64
  • 8
  • Probably a duplicate of https://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix – Jesper Juhl Nov 15 '22 at 10:26

0 Answers0