This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Free Compiler


"vandana yesoda" <vandana.yesoda@wipro.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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]