This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: Lib incompatibilities


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]