This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

Re: Q: mixing MSVC++ and gcc C++ libs/dlls ?


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/


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