Re: Difference in mangling

From: Lew Pitcher (Lew.Pitcher_at_td.com)
Date: 07/29/03


Date: Tue, 29 Jul 2003 10:43:30 -0400

Lew Pitcher wrote:
> lomat wrote:
>
>> Hello,
>>
>> I am using VisiBroker 4.0 on RedHat 8.0 with GCC 3.2.
[snip]
>> 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?
>
>
> IIRC, GCC 3 changed a number of C++ related things, including how it
> mangled the names. Likely, liborb_r.so was compiled with GCC 2, so
> falling your compiler back to GCC 2 might fix your mangling problem.
>

FWIW,
http://info.borland.com/techpubs/visibroker/platforms/vbcpp40.html#vbcpp-red-hat-linux
shows that VisiBroker 4.0 supports "Linux EGCS 1.1.2 with libstdc++.so.2.9
and glibc 2.1.2 libraries".

-- 
Lew Pitcher, IT Consultant, Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed here are my own, not my employer's)


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: Fortran 90 modules suck for portability- why use them?
    ... it is clear that I am talking about name mangling. ... of the various flags gfortran has for name mangling; PathScale has the ... name mangling was perhaps inherited from g95 (the other OSS compiler) ...
    (comp.lang.fortran)
  • Re: extern "C" ... again
    ... There is no standard or convention on how and when to use name ... mangling. ... It is up to the "producer" of compiler and linker to decide. ...
    (microsoft.public.vc.language)
  • Re: Headers!
    ... >>anywhere an explanation of what are .h files and how to write them. ... Note that extern "C" isn't just about name mangling; ... One thing it doesn't do is to cause a C++ compiler to interpret ...
    (alt.comp.lang.learn.c-cpp)
  • Re: interface blocks
    ... Name mangling is part of life in the C++ world. ... every compiler on a given platform mangles ... with name mangling the error is not found until link time instead ... Personally I use the word linker when refering to the last step ...
    (comp.lang.fortran)