curl-library
Re: Compiling on MingW32 without a DLL
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 21 Feb 2006 09:28:42 +0100 (CET)
Date: Tue, 21 Feb 2006 09:28:42 +0100 (CET)
On Mon, 20 Feb 2006, Matthew "Zashi" Hiles wrote:
> /tmp/fakeroot/curl-7.15.1/lib/transfer.c:2226: undefined reference to
> `__imp__curl_easy_strerror'
Allow me to quote the FAQ (http://curl.haxx.se/docs/faq.html#5.7)
When building an application that uses the static libcurl library, you must
add -DCURL_STATICLIB to your CFLAGS. Otherwise the linker will look for
dynamic import symbols. If you get linker error like "unknown symbol
__imp__curl_easy_init ..." you have linked against the wrong (static)
library. If you want to use the libcurl.dll and import lib, you don't need
any extra CFLAGS, but use one of the import libraries below.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-02-21