This is the mail archive of the
mailing list for the Cygwin project.
Visual Studio & Cygwin dlls
- From: Sangita Mohan <sangitam at qualcomm dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 28 Feb 2005 13:39:32 -0800
- Subject: Visual Studio & Cygwin dlls
I am trying to use the OpenLDAP client library from my VC++ code.
I downloaded the Cygwin OpenLDAP dlls and header files. I used a utility
called implib32 to generate lib files for the dlls.
I linked the project to use the OpenLDAP lib files. However it doesn't
build. I get the following errors
unresolved external symbol _ldap_value_free
unresolved external symbol _ldap_next_attribute
unresolved external symbol _ldap_get_values
unresolved external symbol _ldap_first_attribute
unresolved external symbol _ldap_search
unresolved external symbol _ldap_abandon
unresolved external symbol _ldap_bind
unresolved external symbol _ldap_open
unresolved external symbol _ldap_unbind_s
unresolved external symbol _ldap_result
It looks like a name mangling problem to me. I added the extern C in the
header files to prevent name mangling with no luck. I am new to cygwin and
not sure how to proceed from here.
Can someone explain if there is something different to be done when linking
cygwin dlls from VC++ code.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html