This is the mail archive of the 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]

hp shared object name mangle error

I am running HPUX 10.20 and I got the std release of egcs
I built it to be shared, as I'm building dynamically loading
code that is c++ and used stl.

I built something that loads another thing that is a dynamic
library derived from c++ code compiled by egcs's c++ compiler g++.
I use the HP shl_load and shl_findsym to load the library and execute
a c entry point. In the code of the shared library that I am executing,
are references back to utility routines in the 

... while running the main program which dynamically loads another....

NEXUS     |  
NEXUS     |  Running 'test0 '
/usr/lib/ Unresolved symbol: createContext__7ContextPCcUiUiUiUiUiUiUiUi (code)  from /home/toavs/work/nexus/regress/regression
IOT trap (core dumped)

... now looking at strings output and seaching for the symbol... I get one that is slightly different...

ra 8: strings nexus |grep createContext

this one has a trailing :F813
and the one in the shared library does not....
it shows just createContext__7ContextPCcUiUiUiUiUiUiUiUi

however, both compilations use the same header file!
I'm also using the same flags to the compiler ... -fPIC -shared -Wall -g

what's going on here?


Coy Toavs                                        Email:
Verification Engineer                            Direct:       (303)774-5175
Cyrix Corp.                                      Main:         (303)651-5800
A National Semiconductor Company                        1820 Lefthand Circle                                     Longmont, CO  80501

Beware of Programmers who carry screwdrivers.
                -- Leonard Brandwein

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