cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Linking in VC

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Mon, 28 Jan 2008 11:44:55 +0100

"Georg Lippitsch" <georg.lippitsch_at_gmx.at> wrote:

> When linking against latest libcurl-CVS in MSVC (Visual C++ 2005 Express),
> it has a lot of errors like:
>
> 2>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_unbind_s referenced in function _Curl_ldap

Did you link with wldap32.lib?
 
> How can I compile and link libcurl im MSVC (don't need ldap support)? Did I
> oversee something in documentation?

If you don't need ldap, add CURL_DISABLE_LDAP to the CFLAGS.

--gv
Received on 2008-01-28