curl-library
unresolved external symbol _SSL_library_init
Date: Sun, 06 Jun 2004 17:59:30 +0800
I compiled 2 static curl library(version 7.12.0) on windows --
release-libcurl-ssl-dll & debug-ssl version.
and I try to build the sample program from curl site.
================ app4.c ===============================
#include <stdio.h>
#include <curl/curl.h>
int main(void)
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl)
{
curl_easy_setopt(curl, CURLOPT_URL, "http://www.google.com");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
return 0;
}
============================= ===============================
when i compile with release-libcurl-ssl-dll version, this program works
well (static link) :)
but if i compile with debug-ssl version, vc 6 throw tons of error messages
to me. @@~
It throws the same message to me when i try to compile with release-ssl
version curl library.
i have no idea how to solve this problem @@?
does this a bug?
and if i compile libcurl in vc6(IDE)...
the libcurl.dll will have no export functions.... @@~
--------------------Configuration: app4 - Win32 Debug--------------------
Compiling...
app4.c
Linking...
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_library_init
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_load_error_strings
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_EVP_cleanup
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_ERR_free_strings
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CTX_free
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_free
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_set_connect_state
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_shutdown
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_ERR_remove_state
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_SESSION_free
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_get_verify_result
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_X509_get_issuer_name
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_CRYPTO_free
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_X509_free
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_X509_NAME_oneline
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_X509_get_subject_name
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_get_peer_certificate
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CIPHER_get_name
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_get_current_cipher
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_ERR_error_string_n
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_ERR_get_error
libcurld.lib(sendf.obj) : error LNK2001: unresolved external symbol
_ERR_get_error
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_get_error
libcurld.lib(sendf.obj) : error LNK2001: unresolved external symbol
_SSL_get_error
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_connect
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_set_fd
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_set_session
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_new
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CTX_set_verify
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CTX_load_verify_locations
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CTX_set_cipher_list
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CTX_ctrl
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CTX_new
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSLv3_client_method
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSLv2_client_method
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_TLSv1_client_method
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSLv23_client_method
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_RAND_file_name
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_RAND_screen
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_RAND_load_file
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_RAND_status
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CTX_check_private_key
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_EVP_PKEY_free
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_EVP_PKEY_copy_parameters
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_get_privatekey
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_X509_get_pubkey
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_get_certificate
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CTX_use_PrivateKey_file
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CTX_use_certificate_file
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CTX_use_certificate_chain_file
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CTX_set_default_passwd_cb
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_CTX_set_default_passwd_cb_userdata
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_X509_STORE_CTX_get_current_cert
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_SSL_get1_session
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_ASN1_STRING_to_UTF8
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_X509_NAME_ENTRY_get_data
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_X509_NAME_get_entry
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_X509_NAME_get_index_by_NID
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_GENERAL_NAMES_free
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_ASN1_STRING_length
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_ASN1_STRING_data
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_sk_value
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_sk_num
libcurld.lib(ssluse.obj) : error LNK2001: unresolved external symbol
_X509_get_ext_d2i
libcurld.lib(sendf.obj) : error LNK2001: unresolved external symbol
_ERR_error_string
libcurld.lib(sendf.obj) : error LNK2001: unresolved external symbol
_SSL_write
libcurld.lib(sendf.obj) : error LNK2001: unresolved external symbol
_SSL_read
libcurld.lib(md5.obj) : error LNK2001: unresolved external symbol
_MD5_Final
libcurld.lib(md5.obj) : error LNK2001: unresolved external symbol
_MD5_Update
libcurld.lib(md5.obj) : error LNK2001: unresolved external symbol _MD5_Init
libcurld.lib(http_ntlm.obj) : error LNK2001: unresolved external symbol
_MD4_Final
libcurld.lib(http_ntlm.obj) : error LNK2001: unresolved external symbol
_MD4_Update
libcurld.lib(http_ntlm.obj) : error LNK2001: unresolved external symbol
_MD4_Init
libcurld.lib(http_ntlm.obj) : error LNK2001: unresolved external symbol
_DES_ecb_encrypt
libcurld.lib(http_ntlm.obj) : error LNK2001: unresolved external symbol
_DES_set_key
libcurld.lib(http_ntlm.obj) : error LNK2001: unresolved external symbol
_DES_set_odd_parity
Debug/app4.exe : fatal error LNK1120: 74 unresolved externals
Error executing link.exe.
app4.exe - 77 error(s), 0 warning(s)
_________________________________________________________________
下載最新版本的 MSN Messenger:和朋友在線上聊天,用有趣的表情符號傳達心意!
http://messenger.msn.com.tw/
Received on 2004-06-06