delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/28/16:39:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <sangitam AT qualcomm DOT com>
Subject: Visual Studio & Cygwin dlls
Mime-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019