Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Originating-IP: [150.101.115.108]
X-Originating-Email: [tilps@hotmail.com]
From: "Gareth Pearce" <tilps@hotmail.com>
To: "'Heiko Nardmann'" <h.nardmann@secunet.de>,
   "'ML CygWIN'" <cygwin@cygwin.com>
Subject: RE: mixing MSVC++ and gcc C++ libs/dlls ?
Date: Fri, 24 Oct 2003 07:20:41 +1000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-reply-to: <200310231521.35953.h.nardmann@secunet.de>
Message-ID: <BAY2-DAV71fyZ2XOzGl0000440b@hotmail.com>
X-OriginalArrivalTime: 23 Oct 2003 21:20:43.0002 (UTC) FILETIME=[840715A0:01C399AB]


> Hi!
> 
> The FAQ tells me that only C object files can be mixed.
> 
> Is this true for MS .NET and gcc 3.x since I expect both to be conform to
> the
> ABI standard ?
> 

Gcc 3.0 attempted to conform to the c++ abi - it was wrong - so they fixed
lots of things and 3.2 has a different abi.  However, it was still wrong,
and so 3.4 they are going to fix things and there will be a different abi
again.  If MS .NET actually manage to get conformance with the c++ abi
correct (for some reason I doubt this) - then you may find increased luck
mixing c++ object files.  However you'd have to do said mixing without
mixing std c++ libraries, most likely, since they would probably conflict.
Name mangling is part of the c++ abi so that wont be an issue.  Therefore I
predict in about 2 years time when g++ 3.6 is out and MS .Net version 2 is
out - life may have improved in this reguards ;)  If it works before then,
yay for it.

Gareth


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

