cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl.lib linking issues in MSVC 2005/ver 8

From: Matthew Veenstra <matts_lists_at_tribalmedia.com>
Date: Fri, 7 Dec 2007 12:23:58 -0800

        Hello,

On Dec 6, 2007, at 2:16 PM, Immanuel Gregoire wrote:

> On December 6th 2007&#65292; Kevin Lawler wrote:
>
> hey
>
> i remember struggling with that at first too.
> Try linking all the libs (ssl,zlib,..) into your application, not into
> libcurl.lib. That is how i do it.
> Also make sure all your libs are compiled using the same runtime
> library
> flag (/MT, /MTD,..)&#65292; as well as your app.
> Define CURL_STATICLIB as a preprocessor directive (project properties)
>
> For the ldap errors, you can use the CURL_DISABLE_LDAP define in
> setup.h
> &#65288;commeted out by default) or link an ldap lib in.
>
> I might have overlooked something. Let me know what happens.
>

I second the above recommendation. The one time I tried this, that
was the only way I got it to work as well. And make sure the
libraries are all compiles with the same static runtime. So build
them all yourself.

Cheers,
Matt
tribalmedia
Received on 2007-12-07