cURL / Mailing Lists / curl-library / Single Mail

curl-library

Can I link libcurl.a in a Windows 7 (64 bit) environment?

From: Johan Vermeire <jvme38_at_gmail.com>
Date: Sat, 7 May 2011 00:14:00 +0200

Hi,

Can I link libcurl.a in a Windows 7 (64 bit) environment?
I'm struggling with undefined references:

mingw32-make VERBOSE=1 all
'Building ' simple
mingw32-g++ simple.o -LE:/curl-7.21.6-devel-mingw32/lib -lws2_32
-lcurl -o simple
E:/curl-7.21.6-devel-mingw32/lib/libcurl.a(easy.o):(.text+0xc2):
undefined reference to `WSAStartup_at_8'
E:/curl-7.21.6-devel-mingw32/lib/libcurl.a(easy.o):(.text+0xd8):
undefined reference to `WSACleanup_at_0'
E:/curl-7.21.6-devel-mingw32/lib/libcurl.a(easy.o):(.text+0x238):
undefined reference to `WSACleanup_at_0'
E:/curl-7.21.6-devel-mingw32/lib/libcurl.a(sendf.o):(.text+0x121):
undefined reference to `recv_at_16'
E:/curl-7.21.6-devel-mingw32/lib/libcurl.a(sendf.o):(.text+0x139):
undefined reference to `WSAGetLastError_at_0'
E:/curl-7.21.6-devel-mingw32/lib/libcurl.a(sendf.o):(.text+0x877):
undefined reference to `recv_at_16'
E:/curl-7.21.6-devel-mingw32/lib/libcurl.a(sendf.o):(.text+0x8a1):
undefined reference to `WSAGetLastError_at_0'
E:/curl-7.21.6-devel-mingw32/lib/libcurl.a(sendf.o):(.text+0x927):
undefined reference to `send_at_16'
E:/curl-7.21.6-devel-mingw32/lib/libcurl.a(sendf.o):(.text+0x951):
undefined reference to `WSAGetLastError_at_0'
E:/curl-7.21.6-devel-mingw32/lib/libcurl.a(connect.o):(.text+0x1d3):
undefined reference to `getsockopt_at_20'
E:/curl-7.21.6-devel-mingw32/lib/libcurl.a(connect.o):(.text+0x207):
undefined reference to `WSAGetLastError_at_0'
... and so on

Hope someone can help.

Best Regards,

Johan Vermeire
Software engineer
Mobile: +32 (0)473 533 186
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-07