Difference in mangling

From: lomat (atambe_at_ideas.com)
Date: 07/29/03


Date: Tue, 29 Jul 2003 19:40:11 +0530

Hello,

I am using VisiBroker 4.0 on RedHat 8.0 with GCC 3.2.

When I do a "nm liborb_r.so | grep _invoke", I get some output. The symbol
of my intrest is manged as below,
        002f6270 T _preinvoke__12CORBA_ObjectPCc

Now when I build an app that links to liborb_r.so, and uses the _preinvoke
API, GCC mangles this symbol as follows,
        U _ZN12CORBA_Object10_preinvokeEPKc

In short, (as mangling is compiler dependent) my compiler is mangling the
symbols in a way different from the compiler that was used to build the
library I am trying to link to. As a result I am getting an un-resolved
symbol error. How do I solve this?

Thanks in advance,

Loma



Relevant Pages

  • Re: Difference in mangling
    ... > API, GCC mangles this symbol as follows, ... (as mangling is compiler dependent) my compiler is mangling the ... IIRC, GCC 3 changed a number of C++ related things, including how it mangled ...
    (comp.unix.questions)
  • Re: object system...
    ... [A C compiler cannot put a loop control variable in a register without ... and then later may assemble them into ... this whole API may be modified and redirected (in ... functionality it exports, but instead redirects it to the particular library ...
    (comp.object)
  • Re: Quick question about streams...?
    ... For loops and structures are the C language. ... The API is a bunch of functions. ... I don't know what "runs on assembler" means. ... A C compiler usually starts ...
    (microsoft.public.vc.language)
  • Re: C Stack Corruption?
    ... and it seems that I'm getting some stack ... >corruption after any API call. ... It accepts a call from one compiler module, ... >values after any IBM API call. ...
    (comp.lang.c)
  • Re: VS2005 final delayed for september
    ... Besides, Borland isn't just relying on the compiler, but on the whole ... The dependency towards an MS OS is nowhere as tight as ... VS is the primary consumer of .Net, ... of OS API are legions in thousandths of independant companies. ...
    (borland.public.delphi.non-technical)