curl-library
Re: Windows Static Builds
Date: Mon, 20 Dec 2004 20:52:29 +0100
"Traian" <traian_at_burstcopy.com> wrote:
> As I just found out by doing a bunch of diffs with the previous version
> (7.12.1) which built properly, I now needed to define CURL_STATICLIB in
> my application for it to import properly.
The change was done to avoid having to maintain a libcurl.def file.
> The errors one gets in these circumstances are "unresolved external
> symbol __imp__curl_whatever"s when trying to link the application that
> statically links to libcurl.lib.
It mentioned in the FAQ (section 5.7). Basically, in your case add
-DCURL_STATICLIB to your CFLAGS and link with <curl-dir>\lib\curl.lib.
In the "more common" case of using the dynamic lib, you need not do
anything special.
--gv
Received on 2004-12-20