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: different c++ names mangling...


Christopher Faylor wrote:

MSVC and gcc will probably always use different name mangling techniques.

They have to, because they use different vtable layouts, so the binaries will never be link-compatible. And worse, IIRC, Microsoft has some patents on the way they lay out their vtables which could mean that if GCC wanted to generate the same layout, they would have to license that patent (not likely!).


(Of course, notice also that GCC changed its name mangling between the 2.9x and the 3.x series, for precisely the same reason: ABI changes; the name mangling mechanism has been convenient as a way to prevent accidental linking of incompatible binaries..)
--
Shankar.




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