cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Static Lib file for Windows.

From: Gisle Vanem <giva_at_bgnett.no>
Date: Thu, 23 Feb 2006 17:47:02 +0100

"Clarence Klopfstein" <cklopfstein_at_gmail.com> wrote:

> Just downloaded this today and am going over the documentation and such,
> but I would like to see if any of you have transferred this to a static
> lib file for use in a Windows application? I have begun to search the
> archives, but find a bunch of stuff on Linux.

Simply add -DCURL_STATICLIB to your CFLAGS (or 'cl' command line).
Then link against one of the static libs; in case of MSVC, this should be
<curl-root>\lib\libcurl.lib or <curl-root>\lib\libcurld.lib for the debug version.

Additionally, see the FAQ:
  http://curl.haxx.se/docs/faq.html#5.7

--gv
Received on 2006-02-23