delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/28/10:24:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <200003281523.JAA19729@hp2.xraylith.wisc.edu>
To: "vandana yesoda" <vandana DOT yesoda AT wipro DOT com>
cc: cygwin <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Free Compiler
In-reply-to: Your message of "Tue, 28 Mar 2000 15:48:39 +0530."
<38E086FF DOT 8007BAFB AT wipro DOT com>
Date: Tue, 28 Mar 2000 09:23:10 -0600
From: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>

"vandana yesoda" <vandana DOT yesoda AT wipro DOT com> writes:
> Hi all,
> 
> Is there any free compiler which can understand the name mangling of
> MSVC++, so that the C++ objects of MSVC++ and the compiler can be
> combined.
> 

Please read C++ FAQ, or better yet, Stroustrup's book, on why you cannot,
in general, mix-and-match code from different C++ compilers.

To be able to mix C++ code between two compilers, the compilers must use
the same/compatible Application Binary Interface (ABI) that dictates how
the objects are laid out in memory, and other (secondary) issues such
as name mangling and so on.

The only compiler that *may be* C++ ABI compatible with MSVC is 
Metrowerks (http://www.metrowerks.com/); GCC is not, and is unlikely
to be in the near future, ABI compatible with MSVC.

This hopefully also answers the question that you asked in your private
email regarding using dlltool on VC++ C++ symbols.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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