cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to compile libcurl.so with libssh2 and openssl by VC8

From: »ÆÐÄâù <e_balloon_at_163.com>
Date: Fri, 15 Jun 2012 13:59:09 +0800 (CST)

hi,

I am trying to compile libcurl.so by VC8 with libssh2 and openssl, in order to support both SFTP and HTTPS.

My libcurl version is 7.21.3 . When I look at the src/lib/Makfile.vc8, I find there is only option in CFG about ZLIB and SSL, but no LIBSSH2 found.

So I search the web, and find this document:
http://curl.haxx.se/libcurl/c/Using-libcurl-with-SSH-support-in-Visual-Studio-2008.pdf

I follow this document strictly, but still fail when try to make a use of this libcurl.lib , the erros message is:

libcurl.lib(openssl.obj) : error LNK2001: unresolved external symbol EVP_DigestFinal
netsnmp.lib(keytools.obj) : error LNK2019: unresolved external symbol EVP_DigestFinal referenced in function generate_Ku
netsnmp.lib(scapi.obj) : error LNK2001: unresolved external symbol EVP_DigestFinal
libcurl.lib(hostkey.obj) : error LNK2001: unresolved external symbol EVP_DigestFinal
libcurl.lib(kex.obj) : error LNK2001: unresolved external symbol EVP_DigestFinal
libcurl.lib(openssl.obj) : error LNK2001: unresolved external symbol EVP_DigestUpdate
netsnmp.lib(keytools.obj) : error LNK2019: unresolved external symbol EVP_DigestUpdate referenced in function generate_Ku
netsnmp.lib(scapi.obj) : error LNK2001: unresolved external symbol EVP_DigestUpdate
libcurl.lib(hostkey.obj) : error LNK2001: unresolved external symbol EVP_DigestUpdate
libcurl.lib(kex.obj) : error LNK2001: unresolved external symbol EVP_DigestUpdate
netsnmp.lib(keytools.obj) : error LNK2019: unresolved external symbol EVP_sha1 referenced in function generate_Ku
netsnmp.lib(scapi.obj) : error LNK2001: unresolved external symbol EVP_sha1
libcurl.lib(knownhost.obj) : error LNK2001: unresolved external symbol EVP_sha1
libcurl.lib(mac.obj) : error LNK2001: unresolved external symbol EVP_sha1
libcurl.lib(openssl.obj) : error LNK2001: unresolved external symbol EVP_DigestInit
netsnmp.lib(keytools.obj) : error LNK2019: unresolved external symbol EVP_DigestInit referenced in function generate_Ku
netsnmp.lib(scapi.obj) : error LNK2001: unresolved external symbol EVP_DigestInit
libcurl.lib(hostkey.obj) : error LNK2001: unresolved external symbol EVP_DigestInit
libcurl.lib(kex.obj) : error LNK2001: unresolved external symbol EVP_DigestInit
netsnmp.lib(keytools.obj) : error LNK2019: unresolved external symbol EVP_md5 referenced in function generate_Ku
netsnmp.lib(scapi.obj) : error LNK2001: unresolved external symbol EVP_md5
libcurl.lib(mac.obj) : error LNK2001: unresolved external symbol EVP_md5
netsnmp.lib(scapi.obj) : error LNK2019: unresolved external symbol RAND_bytes referenced in function sc_random
libcurl.lib(channel.obj) : error LNK2001: unresolved external symbol RAND_bytes
libcurl.lib(transport.obj) : error LNK2001: unresolved external symbol RAND_bytes
libcurl.lib(kex.obj) : error LNK2001: unresolved external symbol RAND_bytes
netsnmp.lib(scapi.obj) : error LNK2019: unresolved external symbol HMAC referenced in function sc_generate_keyed_hash

Please help to have a look, as I don't know what to do next. Many thanks.

Best regard,
Cindy

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-15