Linker Problem

Alexandre Oliva aoliva@redhat.com
Tue Jun 26 15:54:00 GMT 2001


On Jun 26, 2001, "DiFrango, Ron" <ron.difrango@capitalone.com> wrote:

> can I some how tell the linker to map from the GCC
> mangled name to the one that is actually in the library?

Nope.  Before the multi-vendor C++ ABI started being defined, each C++
compiler vendor chose its own name mangling scheme, which was good,
because each compiler also used different layouts for object types,
different virtual-method dispatching mechanisms, different encodings
for pointers to methods, etc, etc.  So the different name mangling
would prevent you from shooting your own foot :-)

Unfortunately, this new C++ ABI hasn't been adopted by many compilers
yet.  If the library you have has already been compiled by a compiler
that doesn't follow that ABI, there's little hope of getting it to
work with GCC.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc-bugs mailing list