cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Linker errors with MinGW on WinXP

From: codemastr <codemstr_at_ptd.net>
Date: Sat, 24 Apr 2004 20:20:05 -0400

Well you downloaded the SSL version of libcurl. You need OpenSSL for that.
You also need to link with WinSocks -lws2_32 I think...

Dominick Meglio
----- Original Message -----
From: "Tyler Knott" <mr_radar_at_charter.net>
To: "libcurl development" <curl-library_at_cool.haxx.se>
Sent: Saturday, April 24, 2004 8:13 PM
Subject: Re: Linker errors with MinGW on WinXP

> I just added libcurl.a to my c:\Dev-cpp\lib directory and tried
> compiling with the -lcurl option and now I get a bunch of other
> complaints from the linker. I guess I'm missing some dependencies.
> Attached is a list of everything the linker can't find.
>

----------------------------------------------------------------------------

----
> C:\Dev-Cpp\lib/libcurl.a(easy.o)(.text+0x26): undefined reference to
`WSAStartup_at_8'
> C:\Dev-Cpp\lib/libcurl.a(easy.o)(.text+0x3f): undefined reference to
`WSACleanup_at_0'
> C:\Dev-Cpp\lib/libcurl.a(easy.o)(.text+0x5): undefined reference to
`WSACleanup_at_0'
> C:\Dev-Cpp\lib/libcurl.a(url.o)(.text+0x830): undefined reference to
`ENGINE_set_default'
> C:\Dev-Cpp\lib/libcurl.a(url.o)(.text+0xe83): undefined reference to
`ENGINE_by_id'
> C:\Dev-Cpp\lib/libcurl.a(url.o)(.text+0xeaa): undefined reference to
`ENGINE_free'
> C:\Dev-Cpp\lib/libcurl.a(url.o)(.text+0x12cb): undefined reference to
`closesocket_at_4'
> C:\Dev-Cpp\lib/libcurl.a(url.o)(.text+0x12e2): undefined reference to
`closesocket_at_4'
>
> C:\Dev-Cpp\lib/libcurl.a(url.o)(.text+0x1458): undefined reference to
`select_at_20'
> C:\Dev-Cpp\lib/libcurl.a(url.o)(.text+0x1fb9): undefined reference to
`htons_at_4'
> C:\Dev-Cpp\lib/libcurl.a(url.o)(.text+0x2061): undefined reference to
`ntohs_at_4'
> C:\Dev-Cpp\lib/libcurl.a(url.o)(.text+0x2182): undefined reference to
`htons_at_4'
> C:\Dev-Cpp\lib/libcurl.a(url.o)(.text+0x2227): undefined reference to
`inet_ntoa_at_4'
> C:\Dev-Cpp\lib/libcurl.a(transfer.o)(.text+0x678): undefined reference to
`__WSAFDIsSet_at_8'
> C:\Dev-Cpp\lib/libcurl.a(transfer.o)(.text+0xd6d): undefined reference to
`__WSAFDIsSet_at_8'
> C:\Dev-Cpp\lib/libcurl.a(transfer.o)(.text+0x2351): undefined reference to
`select_at_20'
> C:\Dev-Cpp\lib/libcurl.a(transfer.o)(.text+0x23b6): undefined reference to
`select_at_20'
> C:\Dev-Cpp\lib/libcurl.a(transfer.o)(.text+0x27af): undefined reference to
`select_at_20'
> C:\Dev-Cpp\lib/libcurl.a(transfer.o)(.text+0x3111): undefined reference to
`closesocket_at_4'
> C:\Dev-Cpp\lib/libcurl.a(hostip.o)(.text+0x7cf): undefined reference to
`htonl_at_4'
> C:\Dev-Cpp\lib/libcurl.a(hostip.o)(.text+0x7dc): undefined reference to
`inet_ntoa_at_4'
> C:\Dev-Cpp\lib/libcurl.a(hostip.o)(.text+0x87f): undefined reference to
`inet_addr_at_4'
> C:\Dev-Cpp\lib/libcurl.a(hostip.o)(.text+0x8d5): undefined reference to
`ntohl_at_4'
> C:\Dev-Cpp\lib/libcurl.a(hostip.o)(.text+0x929): undefined reference to
`gethostbyname_at_4'
> C:\Dev-Cpp\lib/libcurl.a(hostip.o)(.text+0x98a): undefined reference to
`WSASetLastError_at_4'
> C:\Dev-Cpp\lib/libcurl.a(hostip.o)(.text+0x996): undefined reference to
`gethostbyname_at_4'
> C:\Dev-Cpp\lib/libcurl.a(hostip.o)(.text+0x9c6): undefined reference to
`WSAGetLastError_at_0'
> C:\Dev-Cpp\lib/libcurl.a(hostip.o)(.text+0xc90): undefined reference to
`WSASetLastError_at_4'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x86): undefined reference to
`RAND_status'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0xf5): undefined reference to
`RAND_load_file'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x110): undefined reference to
`RAND_screen'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x124): undefined reference to
`RAND_file_name'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x13d): undefined reference to
`RAND_load_file'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x4c0): undefined reference to
`SSL_CTX_use_certificate_chain_file'
>
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x50e): undefined reference to
`SSL_CTX_use_PrivateKey_file'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x537): undefined reference to
`SSL_new'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x541): undefined reference to
`SSL_get_certificate'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x551): undefined reference to
`X509_get_pubkey'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x55b): undefined reference to
`SSL_get_privatekey'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x564): undefined reference to
`EVP_PKEY_copy_parameters'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x56c): undefined reference to
`EVP_PKEY_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x578): undefined reference to
`SSL_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x582): undefined reference to
`SSL_CTX_check_private_key'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x5d9): undefined reference to
`UI_OpenSSL'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x608): undefined reference to
`ENGINE_load_private_key'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x61d): undefined reference to
`SSL_CTX_use_PrivateKey'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x638): undefined reference to
`EVP_PKEY_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x646): undefined reference to
`EVP_PKEY_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x67e): undefined reference to
`SSL_CTX_use_certificate_file'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x68f): undefined reference to
`SSL_CTX_set_default_passwd_cb_userdata'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x69f): undefined reference to
`SSL_CTX_set_default_passwd_cb'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x6be): undefined reference to
`X509_STORE_CTX_get_current_cert'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x6d3): undefined reference to
`X509_get_subject_name'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x6db): undefined reference to
`X509_NAME_oneline'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x70d): undefined reference to
`SSL_load_error_strings'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x733): undefined reference to
`ERR_free_strings'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x738): undefined reference to
`EVP_cleanup'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x773): undefined reference to
`ERR_remove_state'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x7a5): undefined reference to
`SSL_CTX_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x7bd): undefined reference to
`SSL_shutdown'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x7ca): undefined reference to
`SSL_set_connect_state'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x7d7): undefined reference to
`SSL_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x945): undefined reference to
`SSL_SESSION_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x9ef): undefined reference to
`ENGINE_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0xa37): undefined reference to
`SSL_get1_session'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0xf20): undefined reference to
`X509_get_ext_d2i'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0xf67): undefined reference to
`sk_num'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0xf9e): undefined reference to
`GENERAL_NAMES_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0xfec): undefined reference to
`X509_get_subject_name'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0xff4): undefined reference to
`X509_NAME_get_text_by_NID'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x10b1): undefined reference to
`sk_value'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x10f9): undefined reference to
`ASN1_STRING_data'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1109): undefined reference to
`ASN1_STRING_length'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1694): undefined reference to
`SSLv23_client_method'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x169d): undefined reference to
`SSL_CTX_new'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x16db): undefined reference to
`SSL_CTX_ctrl'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1730): undefined reference to
`SSL_CTX_load_verify_locations'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x17de): undefined reference to
`SSL_CTX_set_verify'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1823): undefined reference to
`SSL_new'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1834): undefined reference to
`SSL_set_connect_state'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x186c): undefined reference to
`SSL_set_fd'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1940): undefined reference to
`SSL_connect'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x195e): undefined reference to
`SSL_get_error'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1a08): undefined reference to
`select_at_20'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1a78): undefined reference to
`ERR_get_error'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1a97): undefined reference to
`ERR_error_string'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1b0c): undefined reference to
`SSL_get_current_cipher'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1b14): undefined reference to
`SSL_CIPHER_get_name'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1b46): undefined reference to
`SSL_get_peer_certificate'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1b90): undefined reference to
`X509_get_subject_name'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1b98): undefined reference to
`X509_NAME_oneline'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1bba): undefined reference to
`CRYPTO_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1c42): undefined reference to
`X509_get_issuer_name'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1c4a): undefined reference to
`X509_NAME_oneline'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1c6c): undefined reference to
`CRYPTO_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1c7c): undefined reference to
`SSL_get_verify_result'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1cbf): undefined reference to
`X509_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1d18): undefined reference to
`X509_free'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1d8b): undefined reference to
`SSL_set_session'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1dd0): undefined reference to
`SSL_CTX_set_cipher_list'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1e3d): undefined reference to
`SSLv3_client_method'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1e47): undefined reference to
`SSLv2_client_method'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x1e51): undefined reference to
`TLSv1_client_method'
> C:\Dev-Cpp\lib/libcurl.a(ssluse.o)(.text+0x715): undefined reference to
`SSL_library_init'
> C:\Dev-Cpp\lib/libcurl.a(sendf.o)(.text+0x356): undefined reference to
`SSL_write'
> C:\Dev-Cpp\lib/libcurl.a(sendf.o)(.text+0x386): undefined reference to
`SSL_get_error'
> C:\Dev-Cpp\lib/libcurl.a(sendf.o)(.text+0x3c0): undefined reference to
`ERR_get_error'
> C:\Dev-Cpp\lib/libcurl.a(sendf.o)(.text+0x3cf): undefined reference to
`ERR_error_string'
> C:\Dev-Cpp\lib/libcurl.a(sendf.o)(.text+0x3fe): undefined reference to
`send_at_16'
> C:\Dev-Cpp\lib/libcurl.a(sendf.o)(.text+0x55e): undefined reference to
`SSL_read'
> C:\Dev-Cpp\lib/libcurl.a(sendf.o)(.text+0x581): undefined reference to
`SSL_get_error'
> C:\Dev-Cpp\lib/libcurl.a(sendf.o)(.text+0x59a): undefined reference to
`ERR_get_error'
> C:\Dev-Cpp\lib/libcurl.a(sendf.o)(.text+0x5b0): undefined reference to
`ERR_error_string'
> C:\Dev-Cpp\lib/libcurl.a(sendf.o)(.text+0x5e0): undefined reference to
`recv_at_16'
> C:\Dev-Cpp\lib/libcurl.a(telnet.o)(.text+0x227): undefined reference to
`WSAStartup_at_8'
>
> C:\Dev-Cpp\lib/libcurl.a(telnet.o)(.text+0x251): undefined reference to
`WSACleanup_at_0'
> C:\Dev-Cpp\lib/libcurl.a(telnet.o)(.text+0x4db): undefined reference to
`send_at_16'
> C:\Dev-Cpp\lib/libcurl.a(telnet.o)(.text+0x10c7): undefined reference to
`send_at_16'
> C:\Dev-Cpp\lib/libcurl.a(telnet.o)(.text+0x1194): undefined reference to
`send_at_16'
> C:\Dev-Cpp\lib/libcurl.a(telnet.o)(.text+0x19b3): undefined reference to
`WSAGetLastError_at_0'
> C:\Dev-Cpp\lib/libcurl.a(telnet.o)(.text+0x1b4c): undefined reference to
`WSAGetLastError_at_0'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x222): undefined reference to
`select_at_20'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x255): undefined reference to
`getsockname_at_12'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x25d): undefined reference to
`accept_at_12'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x267): undefined reference to
`closesocket_at_4'
>
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x8cd): undefined reference to
`select_at_20'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x10de): undefined reference to
`closesocket_at_4'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x16d7): undefined reference to
`inet_addr_at_4'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x16ef): undefined reference to
`gethostbyaddr_at_12'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x1705): undefined reference to
`inet_ntoa_at_4'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x19e6): undefined reference to
`socket_at_12'
>
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x1a18): undefined reference to
`bind_at_12'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x1a40): undefined reference to
`getsockname_at_12'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x1a5e): undefined reference to
`ntohs_at_4'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x1a6d): undefined reference to
`listen_at_8'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x1ab7): undefined reference to
`inet_ntoa_at_4'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x1c92): undefined reference to
`getsockname_at_12'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x1cb5): undefined reference to
`inet_addr_at_4'
> C:\Dev-Cpp\lib/libcurl.a(ftp.o)(.text+0x3606): undefined reference to
`closesocket_at_4'
> C:\Dev-Cpp\lib/libcurl.a(http.o)(.text+0x10fc): undefined reference to
`select_at_20'
> C:\Dev-Cpp\lib/libcurl.a(connect.o)(.text+0x2a): undefined reference to
`ioctlsocket_at_12'
> C:\Dev-Cpp\lib/libcurl.a(connect.o)(.text+0xda): undefined reference to
`select_at_20'
> C:\Dev-Cpp\lib/libcurl.a(connect.o)(.text+0x105): undefined reference to
`__WSAFDIsSet_at_8'
> C:\Dev-Cpp\lib/libcurl.a(connect.o)(.text+0x43d): undefined reference to
`inet_addr_at_4'
> C:\Dev-Cpp\lib/libcurl.a(connect.o)(.text+0x49e): undefined reference to
`inet_addr_at_4'
> C:\Dev-Cpp\lib/libcurl.a(connect.o)(.text+0x53c): undefined reference to
`bind_at_12'
> C:\Dev-Cpp\lib/libcurl.a(connect.o)(.text+0x56a): undefined reference to
`getsockname_at_12'
> C:\Dev-Cpp\lib/libcurl.a(connect.o)(.text+0xa7a): undefined reference to
`socket_at_12'
> C:\Dev-Cpp\lib/libcurl.a(connect.o)(.text+0xacd): undefined reference to
`htons_at_4'
> C:\Dev-Cpp\lib/libcurl.a(connect.o)(.text+0xb16): undefined reference to
`connect_at_12'
> C:\Dev-Cpp\lib/libcurl.a(connect.o)(.text+0xb55): undefined reference to
`closesocket_at_4'
> C:\Dev-Cpp\lib/libcurl.a(timeval.o)(.text+0x9): undefined reference to
`timeGetTime_at_0'
> C:\Dev-Cpp\lib/libcurl.a(content_encoding.o)(.text+0xeb): undefined
reference to `inflateEnd'
> C:\Dev-Cpp\lib/libcurl.a(content_encoding.o)(.text+0x161): undefined
reference to `inflate'
> C:\Dev-Cpp\lib/libcurl.a(content_encoding.o)(.text+0x1c5): undefined
reference to `inflateEnd'
> C:\Dev-Cpp\lib/libcurl.a(content_encoding.o)(.text+0x226): undefined
reference to `inflateInit_'
> C:\Dev-Cpp\lib/libcurl.a(content_encoding.o)(.text+0x3d3): undefined
reference to `inflate'
> C:\Dev-Cpp\lib/libcurl.a(content_encoding.o)(.text+0x435): undefined
reference to `inflateEnd'
> C:\Dev-Cpp\lib/libcurl.a(content_encoding.o)(.text+0x5dc): undefined
reference to `inflateInit2_'
> C:\Dev-Cpp\lib/libcurl.a(http_ntlm.o)(.text+0x1ae): undefined reference to
`DES_set_odd_parity'
> C:\Dev-Cpp\lib/libcurl.a(http_ntlm.o)(.text+0x1ba): undefined reference to
`DES_set_key'
> C:\Dev-Cpp\lib/libcurl.a(http_ntlm.o)(.text+0x1f8): undefined reference to
`DES_ecb_encrypt'
> C:\Dev-Cpp\lib/libcurl.a(http_ntlm.o)(.text+0x21b): undefined reference to
`DES_ecb_encrypt'
> C:\Dev-Cpp\lib/libcurl.a(http_ntlm.o)(.text+0x232): undefined reference to
`DES_ecb_encrypt'
> C:\Dev-Cpp\lib/libcurl.a(http_ntlm.o)(.text+0x2c7): undefined reference to
`DES_ecb_encrypt'
> C:\Dev-Cpp\lib/libcurl.a(http_ntlm.o)(.text+0x2e5): undefined reference to
`DES_ecb_encrypt'
> C:\Dev-Cpp\lib/libcurl.a(md5.o)(.text+0x10): undefined reference to
`MD5_Init'
> C:\Dev-Cpp\lib/libcurl.a(md5.o)(.text+0x23): undefined reference to
`MD5_Update'
> C:\Dev-Cpp\lib/libcurl.a(md5.o)(.text+0x2f): undefined reference to
`MD5_Final'
Received on 2004-04-25