cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Win32 version of curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 30 Oct 2005 19:54:45 +0100 (CET)

On Sun, 30 Oct 2005, Dave M wrote:

> I tried to compile and get:
>
> --------------------Configuration: cURL - Win32 Debug--------------------
> Linking...
> main.obj : error LNK2001: unresolved external symbol
> __imp__curl_slist_free_all
> main.obj : error LNK2001: unresolved external symbol __imp__curl_formfree
> main.obj : error LNK2001: unresolved external symbol __imp__curl_easy_cleanup

Building with a static lib then I presume?

Allow me to quote 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.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-10-30