delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/23/14:21:02

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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankar AT cotagesoft DOT com>
Subject: Re: Q: mixing MSVC++ and gcc C++ libs/dlls ?
Date: Thu, 23 Oct 2003 11:20:34 -0700
Lines: 11
Message-ID: <bn965j$404$1@sea.gmane.org>
References: <200310231521 DOT 35953 DOT h DOT nardmann AT secunet DOT de> <20031023141929 DOT GB25894 AT linux_rln DOT harvest>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (Compact)
X-Accept-Language: en-us, en
In-Reply-To: <20031023141929.GB25894@linux_rln.harvest>

Ronald Landheer-Cieslak wrote:

> Anyway, gcc and MSVC don't use the same name mangling (decoration) schemes for
> C++ so you will not be able to mix the two. 

And the reason for *that* is that the two compilers lay out objects
differently (especially virtual tables). So, the only way you can mix
them is to use extern "C" wrappers (quite apart from the problems of
mixing and matching /MT, /MD and other funky runtime combinations of MS
DLLs).



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