cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Library error while debugging (fwd)

From: Guenter <lists_at_gknw.net>
Date: Tue, 17 Sep 2013 22:42:51 +0200

Hi,
> I am a beginner and was trying to use libcurl in my test application and
> followed all the steps as detailed in the
> Using-libcurl-with-SSH-support-in-Visual-Studio-2010.pdf.
> Errors
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_unbind_s referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_msgfree referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ber_free referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_memfree referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_value_free_len referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_get_values_len referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_next_attribute referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_first_attribute referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_get_dn referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_next_entry referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_first_entry referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_search_s referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_simple_bind_s referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_init referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_set_option referenced in function _Curl_ldap
> 1>libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
> __imp__ldap_err2string referenced in function _Curl_ldap

looks as if you're missing to link against the WinLDAP library ...

so either:
- disable LDAP support when compiling libcurl if you dont need it
or:
- add Wldap32.Lib to the linker libraries.

Gün.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-09-17