This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++ compatibility with libC on Solaris
- To: Andrew Pimlott <andrew at pimlott dot ne dot mediaone dot net>
- Subject: Re: g++ compatibility with libC on Solaris
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 01 Feb 1999 22:36:10 -0700
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <19990201222923.A22407@pimlott.ne.mediaone.net>you write:
> My problem is that I wish to compile my C++ code with g++, but link it with
> a (third-party, binary only) dynamic library that was compiled with the Sun
> C++ compiler. In our tests, this appears to introduce major
> incompatibilites, and I would like to know if there are strategies for
> working around them.
Nope, mixing and matching objects from different C++ compilers generally
is not going to work.
It's more than just mangling -- you also have to worry about vtable
layouts, thunks, etc.
jeff