curl-library
Réf. : Re: Awaiting an Answer for Win 32 Install
Date: Mon, 4 Jul 2005 11:49:04 +0200
As Daniel said, you have to change #include "libcurl/curl.h" to #include
"curl/curl.h", gcc is happier when you have a new line at the end of your
file.
Then you go to the command line and type :
gcc -o getinfo getinfo.c -lcurldll
and you have your executable.
I have never tried to get a static lib linked.
If I try
gcc -o getinfo getinfo.c -lcurl
I get a load of linking errors (meaning that I should probably add other
libs wsock32, openssl, zlib that I don't have for mingw32 ) :
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(easy.o)(.text+0x26):
undefined reference to `WSAStartup_at_8'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(easy.o)(.text+0x3f):
undefined reference to `WSACleanup_at_0'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(easy.o)(.text+0x5):
undefined reference to `WSACleanup_at_0'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(url.o)(.text+0x148c):
undefined reference to `closesocket_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(url.o)(.text+0x14a3):
undefined reference to `closesocket_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(url.o)(.text+0x2138):
undefined reference to `htons_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(url.o)(.text+0x21e0):
undefined reference to `ntohs_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(transfer.o)(.text+0x3076):
undefined reference to `closesocket_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x86):
undefined reference to `RAND_status'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xf5):
undefined reference to `RAND_load_file'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x10d):
undefined reference to `RAND_screen'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x121):
undefined reference to `RAND_file_name'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x13a):
undefined reference to `RAND_load_file'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x5e1):
undefined reference to `SSL_CTX_use_certificate_chain_file'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x63c):
undefined reference to `SSL_CTX_use_PrivateKey_file'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x66b):
undefined reference to `SSL_new'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x675):
undefined reference to `SSL_get_certificate'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x688):
undefined reference to `SSL_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x692):
undefined reference to `SSL_CTX_check_private_key'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x6bb):
undefined reference to `X509_get_pubkey'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x6c5):
undefined reference to `SSL_get_privatekey'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x6ce):
undefined reference to `EVP_PKEY_copy_parameters'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x6d6):
undefined reference to `EVP_PKEY_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x72c):
undefined reference to `UI_OpenSSL'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x764):
undefined reference to `ENGINE_load_private_key'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x779):
undefined reference to `SSL_CTX_use_PrivateKey'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x794):
undefined reference to `EVP_PKEY_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x7a2):
undefined reference to `EVP_PKEY_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x7f2):
undefined reference to `d2i_PKCS12_fp'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x802):
undefined reference to `PKCS12_PBE_add'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x821):
undefined reference to `PKCS12_parse'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x832):
undefined reference to `ERR_get_error'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x83a):
undefined reference to `ERR_error_string'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x854):
undefined reference to `PKCS12_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x863):
undefined reference to `SSL_CTX_use_certificate'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x880):
undefined reference to `EVP_PKEY_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x88a):
undefined reference to `X509_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x89e):
undefined reference to `SSL_CTX_use_PrivateKey'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x8b9):
undefined reference to `EVP_PKEY_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x8c3):
undefined reference to `X509_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x8f9):
undefined reference to `SSL_CTX_use_certificate_file'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x90a):
undefined reference to `SSL_CTX_set_default_passwd_cb_userdat
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x91a):
undefined reference to `SSL_CTX_set_default_passwd_cb'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x93e):
undefined reference to `X509_STORE_CTX_get_current_cert'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x953):
undefined reference to `X509_get_subject_name'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x95b):
undefined reference to `X509_NAME_oneline'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x983):
undefined reference to `ERR_error_string_n'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x9ad):
undefined reference to `ENGINE_load_builtin_engines'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x9b2):
undefined reference to `SSL_load_error_strings'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x9d3):
undefined reference to `ERR_free_strings'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x9d8):
undefined reference to `EVP_cleanup'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xa64):
undefined reference to `ENGINE_by_id'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xa8e):
undefined reference to `ENGINE_init'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xab5):
undefined reference to `ENGINE_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xac8):
undefined reference to `ERR_get_error'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xaf5):
undefined reference to `ENGINE_finish'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xb02):
undefined reference to `ENGINE_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xbb9):
undefined reference to `ENGINE_set_default'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xc08):
undefined reference to `ENGINE_get_first'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xc17):
undefined reference to `ENGINE_get_id'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xc2a):
undefined reference to `ENGINE_get_next'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xc63):
undefined reference to `ERR_remove_state'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xc95):
undefined reference to `SSL_CTX_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xcad):
undefined reference to `SSL_shutdown'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xcba):
undefined reference to `SSL_set_connect_state'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xcc7):
undefined reference to `SSL_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xe35):
undefined reference to `SSL_SESSION_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xee0):
undefined reference to `ENGINE_finish'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xeed):
undefined reference to `ENGINE_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0xf48):
undefined reference to `SSL_get1_session'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x1445):
undefined reference to `X509_get_ext_d2i'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x1458):
undefined reference to `sk_num'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x147b):
undefined reference to `sk_value'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x14ac):
undefined reference to `GENERAL_NAMES_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x14f2):
undefined reference to `X509_get_subject_name'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x1506):
undefined reference to `X509_NAME_get_index_by_NID'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x1521):
undefined reference to `X509_NAME_get_entry'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x152a):
undefined reference to `X509_NAME_ENTRY_get_data'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x153c):
undefined reference to `ASN1_STRING_type'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x1554):
undefined reference to `ASN1_STRING_to_UTF8'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x15db):
undefined reference to `CRYPTO_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x160f):
undefined reference to `CRYPTO_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x162b):
undefined reference to `ASN1_STRING_length'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x164c):
undefined reference to `CRYPTO_malloc'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x1665):
undefined reference to `ASN1_STRING_data'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x1688):
undefined reference to `ASN1_STRING_data'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x16aa):
undefined reference to `ASN1_STRING_length'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x1f87):
undefined reference to `SSLv23_client_method'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x1f90):
undefined reference to `SSL_CTX_new'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x1fca):
undefined reference to `SSL_CTX_ctrl'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x201f):
undefined reference to `SSL_CTX_load_verify_locations'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x20d2):
undefined reference to `SSL_CTX_set_verify'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x2117):
undefined reference to `SSL_new'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x2128):
undefined reference to `SSL_set_connect_state'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x2160):
undefined reference to `SSL_set_fd'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x21f1):
undefined reference to `SSL_connect'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x2215):
undefined reference to `SSL_get_error'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x2291):
undefined reference to `ERR_get_error'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x232f):
undefined reference to `SSL_get_current_cipher'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x2337):
undefined reference to `SSL_CIPHER_get_name'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x2369):
undefined reference to `SSL_get_peer_certificate'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x23b3):
undefined reference to `X509_get_subject_name'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x23bb):
undefined reference to `X509_NAME_oneline'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x23dd):
undefined reference to `CRYPTO_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x2469):
undefined reference to `X509_get_issuer_name'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x2471):
undefined reference to `X509_NAME_oneline'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x2493):
undefined reference to `CRYPTO_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x24a3):
undefined reference to `SSL_get_verify_result'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x24c3):
undefined reference to `X509_verify_cert_error_string'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x24f1):
undefined reference to `X509_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x250b):
undefined reference to `X509_verify_cert_error_string'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x255b):
undefined reference to `X509_free'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x25c8):
undefined reference to `SSL_set_session'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x260d):
undefined reference to `SSL_CTX_set_cipher_list'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x268a):
undefined reference to `SSL_CTX_callback_ctrl'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x26a1):
undefined reference to `SSL_CTX_ctrl'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x26c8):
undefined reference to `SSLv3_client_method'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x26d2):
undefined reference to `SSLv2_client_method'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x26dc):
undefined reference to `TLSv1_client_method'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ssluse.o)(.text+0x9ba):
undefined reference to `SSL_library_init'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(sendf.o)(.text+0x3c2):
undefined reference to `SSL_write'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(sendf.o)(.text+0x3f4):
undefined reference to `SSL_get_error'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(sendf.o)(.text+0x42e):
undefined reference to `ERR_get_error'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(sendf.o)(.text+0x43d):
undefined reference to `ERR_error_string'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(sendf.o)(.text+0x46e):
undefined reference to `send_at_16'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(sendf.o)(.text+0x5ee):
undefined reference to `SSL_read'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(sendf.o)(.text+0x611):
undefined reference to `SSL_get_error'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(sendf.o)(.text+0x62a):
undefined reference to `ERR_get_error'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(sendf.o)(.text+0x640):
undefined reference to `ERR_error_string'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(sendf.o)(.text+0x673):
undefined reference to `recv_at_16'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(telnet.o)(.text+0x227):
undefined reference to `WSAStartup_at_8'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(telnet.o)(.text+0x251):
undefined reference to `WSACleanup_at_0'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(telnet.o)(.text+0x4cb):
undefined reference to `send_at_16'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(telnet.o)(.text+0x10c7):
undefined reference to `send_at_16'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(telnet.o)(.text+0x1194):
undefined reference to `send_at_16'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(telnet.o)(.text+0x19ee):
undefined reference to `WSAGetLastError_at_0'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(telnet.o)(.text+0x1c87):
undefined reference to `WSAGetLastError_at_0'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ftp.o)(.text+0x272):
undefined reference to `getsockname_at_12'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ftp.o)(.text+0x27d):
undefined reference to `accept_at_12'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ftp.o)(.text+0x28a):
undefined reference to `closesocket_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ftp.o)(.text+0x111c):
undefined reference to `closesocket_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ftp.o)(.text+0x19f4):
undefined reference to `socket_at_12'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ftp.o)(.text+0x1a4c):
undefined reference to `bind_at_12'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ftp.o)(.text+0x1a74):
undefined reference to `getsockname_at_12'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ftp.o)(.text+0x1a92):
undefined reference to `ntohs_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ftp.o)(.text+0x1aa1):
undefined reference to `listen_at_8'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ftp.o)(.text+0x1c91):
undefined reference to `getsockname_at_12'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ftp.o)(.text+0x1cab):
undefined reference to `inet_addr_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(ftp.o)(.text+0x3f4c):
undefined reference to `closesocket_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(connect.o)(.text+0x2a):
undefined reference to `ioctlsocket_at_12'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(connect.o)(.text+0x27d):
undefined reference to `inet_addr_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(connect.o)(.text+0x2de):
undefined reference to `inet_addr_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(connect.o)(.text+0x315):
undefined reference to `bind_at_12'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(connect.o)(.text+0x343):
undefined reference to `getsockname_at_12'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(connect.o)(.text+0x40f):
undefined reference to `getsockopt_at_20'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(connect.o)(.text+0x767):
undefined reference to `setsockopt_at_20'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(connect.o)(.text+0x811):
undefined reference to `socket_at_12'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(connect.o)(.text+0x895):
undefined reference to `connect_at_12'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(connect.o)(.text+0x8f2):
undefined reference to `closesocket_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(hostthre.o)(.text+0xab):
undefined reference to `WSASetLastError_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(hostthre.o)(.text+0xb7):
undefined reference to `gethostbyname_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(hostthre.o)(.text+0x119):
undefined reference to `WSAGetLastError_at_0'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(hostthre.o)(.text+0x152):
undefined reference to `closesocket_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(hostthre.o)(.text+0x2f9):
undefined reference to `socket_at_12'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(hostthre.o)(.text+0x4d4):
undefined reference to `WSASetLastError_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(hostthre.o)(.text+0x655):
undefined reference to `inet_addr_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(hostthre.o)(.text+0x6cc):
undefined reference to `gethostbyname_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(hostthre.o)(.text+0x6f0):
undefined reference to `WSAGetLastError_at_0'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(timeval.o)(.text+0x9):
undefined reference to `timeGetTime_at_0'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(select.o)(.text+0x115):
undefined reference to `select_at_20'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(select.o)(.text+0x13b):
undefined reference to `__WSAFDIsSet_at_8'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(select.o)(.text+0x155):
undefined reference to `__WSAFDIsSet_at_8'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(select.o)(.text+0x172):
undefined reference to `__WSAFDIsSet_at_8'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(select.o)(.text+0x18a):
undefined reference to `__WSAFDIsSet_at_8'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(select.o)(.text+0x347):
undefined reference to `select_at_20'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(select.o)(.text+0x389):
undefined reference to `__WSAFDIsSet_at_8'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(select.o)(.text+0x3a5):
undefined reference to `__WSAFDIsSet_at_8'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(select.o)(.text+0x3c1):
undefined reference to `__WSAFDIsSet_at_8'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(content_encoding.o)(.text+0xeb):
undefined reference to `inflateEnd'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(content_encoding.o)(.text+0x140):
undefined reference to `inflate'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(content_encoding.o)(.text+0x1b5):
undefined reference to `inflateEnd'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(content_encoding.o)(.text+0x25b):
undefined reference to `inflateInit_'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(content_encoding.o)(.text+0x5df):
undefined reference to `zlibVersion'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(content_encoding.o)(.text+0x607):
undefined reference to `inflateInit2_'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(content_encoding.o)(.text+0x63c):
undefined reference to `inflateInit2_'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(hostip4.o)(.text+0x141):
undefined reference to `htons_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(inet_ntop.o)(.text+0x16):
undefined reference to `inet_ntoa_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(inet_ntop.o)(.text+0x56):
undefined reference to `WSASetLastError_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(inet_ntop.o)(.text+0x9a):
undefined reference to `WSASetLastError_at_4'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(http_ntlm.o)(.text+0x1ae):
undefined reference to `DES_set_odd_parity'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(http_ntlm.o)(.text+0x1ba):
undefined reference to `DES_set_key'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(http_ntlm.o)(.text+0x1f8):
undefined reference to `DES_ecb_encrypt'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(http_ntlm.o)(.text+0x21b):
undefined reference to `DES_ecb_encrypt'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(http_ntlm.o)(.text+0x232):
undefined reference to `DES_ecb_encrypt'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(http_ntlm.o)(.text+0x2c8):
undefined reference to `DES_ecb_encrypt'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(http_ntlm.o)(.text+0x2e6):
undefined reference to `DES_ecb_encrypt'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(http_ntlm.o)(.text+0x33e):
undefined reference to `MD4_Init'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(http_ntlm.o)(.text+0x34c):
undefined reference to `MD4_Update'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(http_ntlm.o)(.text+0x358):
undefined reference to `MD4_Final'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(md5.o)(.text+0x10):
undefined reference to `MD5_Init'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(md5.o)(.text+0x23):
undefined reference to `MD5_Update'
C:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libcurl.a(md5.o)(.text+0x2f):
undefined reference to `MD5_Final'
Daniel Stenberg <daniel-curl_at_haxx.se>
Envoyé par : curl-library-bounces_at_cool.haxx.se
01/07/2005 23:49
Veuillez répondre à libcurl development
Remis le : 01/07/2005 23:54
Pour : libcurl development <curl-library_at_cool.haxx.se>
cc : (ccc : Philippe HAMEAU/DRD/SAGEM)
Objet : Re: Awaiting an Answer for Win 32 Install
On Fri, 1 Jul 2005, T kyer wrote:
> Thanks for your help Philippe. I not only redownloaded the
> curl-7.13.0-win32-ssl-devel-mingw32.zip
It contains libcurl.a (static lib version) and libcurl.dll, as well as the
curl header files.
> One question - I have installed curl in the folder
> C:\Dev..\include\libcurl\. I have included in the MAIN program #include
> "libcurl/curl.h" to direct the linking process to the right file.
However I
> have noticed that curl header and aux files use "curl/curl.h".
Yes, that (#include <curl/curl.h>) is how it should be made. Which
incidently
is how all examples do it.
> Although I have tried both methods in my installation without any
noticeable
> differences
You need to tell your compiler where that 'curl' dir is, with the -I
option.
And you tell your linker where your libs are, with the -L option.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-07-04