[Prev][Next][Index][Thread]

Re: Thanks for your reply Bruce



Rob Myers <robm@tdv.com> wrote:
> As other posters have already pointed out, C++ interoperability is a real
> minefiled for any language. Different C++ compilers, ANSI or not, cannot
> talk to each other without an object model shim. The name mangling and
> vTables are different.

It's even worse than that.  The above can be avoided if you wrap all
method calls with a c wrapper function.  However you still can"t link
because every C++ implementation has a run time system to support new,
exceptions, streams, and so on.  These differ so on Solaris, code
compiled with  gcc, Sparcworks 4.2, and Sparcworks 5.0 can not be
mingled.

Bruce Seiler
bseiler@cadence.com



References: