This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GNU compatibility with HP-UX aC++
- To: tann at exchange dot SanDiegoCA dot NCR dot com
- Subject: Re: GNU compatibility with HP-UX aC++
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Wed, 15 Jul 1998 08:07:17 +0200
- CC: egcs at cygnus dot com
- References: <199807141829.LAA18004@ncr-sd.SanDiegoCA.NCR.COM>
> I would like to know if binaries/applications generated/built with GNU
> compiler are compatible with HP-UX aC++. If not, is there a newer
> version of GCC that will be compatible?
No. In general, two different C++ compilers are not binary-compatible.
There are many reasons for that: different class layout, different
virtual table structures, different mangling.
So if you have binary-only libraries compiled with aC++, you have to
ask the author to recompile with g++, or you have to use aC++
yourself.
For C code, things are better in general; I can't give a definite
answer for HP-UX, though.
Regards,
Martin