This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Lib incompatibilities
- From: Frank <fgeck at optonline dot net>
- To: Eljay Love-Jensen <eljay at adobe dot com>
- Cc: GNU GCC help list <gcc-help at gcc dot gnu dot org>
- Date: Thu, 17 Jul 2003 09:14:34 -0400
- Subject: Re: Lib incompatibilities
- Organization: Keyway Security
- References: <5.2.0.9.0.20030717075051.021dc008@iplan-mn.corp.adobe.com>
Wow, thanks. At first I could not see how one could use external 3rd party or standard libraries (but probably each compiler comes with it's own standard template lib hum?) if all the libs where not compatible. But I guess they construct a "C
thunk barrier" (humm, first time hearing about this). LOoks like I need to compile al witht he same compiler.
Thanks!!!
Frank
Eljay Love-Jensen wrote:
> Hi Frank,
>
> The object code is not compatible. The generated object code follows different conventions for RTTI, for exception handling, for name mangling, and for bootstrapping.
>
> To get the Forte v6u1 and GCC v3.2.1 C++ code to work together, you need to construct a "C thunk barrier" code that bridges the one C++ environment to the other C++ environment. (Or, alternatively, use the same compiler on all the code.)
>
> Why isn't the object code compatible?
>
> Because there isn't a common C++ ABI.
>
> There is a common C ABI.
>
> HTH,
> --Eljay