GNU compatibility with HP-UX aC++
Martin von Loewis
martin@mira.isdn.cs.tu-berlin.de
Tue Jul 14 23:08:00 GMT 1998
> 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
More information about the Gcc
mailing list