Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <6.2.2.1.2.20050228133028.04fc5af8@unixmail.qualcomm.com> Date: Mon, 28 Feb 2005 13:39:32 -0800 To: cygwin AT cygwin DOT com From: Sangita Mohan Subject: Visual Studio & Cygwin dlls Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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. TIA -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/