Answer below... On Mon, May 25, 2009 at 10:38 PM, gary marlow <[email protected]> wrote: > perl util/copy.pl "out32\ssleay32.lib" "C:\tmpopenssl\lib" > Copying: out32/ssleay32.lib to C:/tmpopenssl/lib/ssleay32.lib > perl util/copy.pl "out32\libeay32.lib" "C:\tmpopenssl\lib" > Copying: out32/libeay32.lib to C:/tmpopenssl/lib/libeay32.lib > > So far so good, however, when I link my project I get the following > unresolved symbols: > > connect.obj : error LNK2019: unresolved external symbol _RC4_set_key > referenced in function "void __cdecl InitializeEncryption() > connect.obj : error LNK2019: unresolved external symbol _HMAC_CTX_cleanup > referenced in function "void __cdecl InitializeEncryption() > connect.obj : error LNK2019: unresolved external symbol _HMAC_Final > referenced in function "void __cdecl InitializeEncryption() > connect.obj : error LNK2019: unresolved external symbol _HMAC_Update > referenced in function "void __cdecl InitializeEncryption() > connect.obj : error LNK2019: unresolved external symbol _HMAC_Init_ex > referenced in function "void __cdecl InitializeEncryption() > connect.obj : error LNK2019: unresolved external symbol _EVP_sha256 > referenced in function "void __cdecl InitializeEncryption() > connect.obj : error LNK2019: unresolved external symbol _HMAC_CTX_init > referenced in function "void __cdecl InitializeEncryption() > connect.obj : error LNK2019: unresolved external symbol _RC4 referenced in > function "protected: bool __thiscall Connect() > > > The connect.obj functions are mine. The code is trying to build a console > application. Am I leaving something out that I get these unresolved? > > Thank you, I will greatly appreciate any help.
Might be you didn't specify that libeay32.lib file as part of the includes of the linker (see linker section in MSVC project: Linker > Input > Additional Dependencies) Note that SSL delivers two(2) libraries/DLLs: ssleay32 for the SSL stuff and libeay32 for the crypto stuff, such as MD4, AES, etc... (Disclaimer ;-)) : I use a completely different MSVC rig myself, so cannot validate this, but it's my first hunch, given the way openSSL produces it's libraries and the caveats regarding msvc and external library usage.) -- Met vriendelijke groeten / Best regards, Ger Hobbelt -------------------------------------------------- web: http://www.hobbelt.com/ http://www.hebbut.net/ mail: [email protected] mobile: +31-6-11 120 978 -------------------------------------------------- ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
