delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/04/01:57:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: <20040504055710.27230.qmail@web20604.mail.yahoo.com>
Date: Mon, 3 May 2004 22:57:10 -0700 (PDT)
From: john george <jgsave AT yahoo DOT com>
Subject: RE: Trying to link an MSVC DLL with a Cygwin Application
To: "Billinghurst, David \(CALCRTS\)" <david DOT billinghurst AT comalco DOT riotinto DOT com DOT au>,
cygwin AT cygwin DOT com
In-Reply-To: <8ED2FA87C8ACC04192709688DDFD5F5F09B9BF@calttsv025.cal.riotinto.org>
MIME-Version: 1.0
X-IsSubscribed: yes

Can i resolve the name mangling issue by adding the 
extern "C" declaration for every function that I'm
exporting in the MSVC created DLL.
I tried this but doesn't seem to work.Is there any
other way to do this.
Thanks
john


--- "Billinghurst, David (CALCRTS)"
<david DOT billinghurst AT comalco DOT riotinto DOT com DOT au> wrote:
> > From: john george
> >
> > I'm trying to link a MSVC++  created DLL with a
> cygwin
> > application. 
> >
> > ...
> >
> > This gives me undefined refernce to function name
> ...
> > 
> > Is there anything that I'm missing?
> 
> The g++ and MSVC++ mangle C++ names differently. 
> This makes
> it very difficult (perhaps impossible) to link a
> MSVC++ 
> created DLL with a g++ compiled (cygwin or mingw)
> application.
> 
> --
> 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/
> 



	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

--
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