This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Version of shared libs Vs Name mangling.
- From: "Ajay Bansal" <Ajay_Bansal at infosys dot com>
- To: "Ajay Bansal" <Ajay_Bansal at infosys dot com>,<gcc-help at gcc dot gnu dot org>
- Date: Thu, 6 Mar 2003 16:57:51 +0530
- Subject: RE: Version of shared libs Vs Name mangling.
Can I know, with which version of gcc a binary has been built???
-----Original Message-----
From: Ajay Bansal
Sent: Thursday, March 06, 2003 12:40 PM
To: gcc-help at gcc dot gnu dot org
Subject: Version of shared libs Vs Name mangling.
Hi All
Pleeeeeeeeeeease help me out.. (otherwise I am sure to get some hard
thrashing)
I am working on RH73, gcc version 3.2.1.
I have a binary which is dependent on xercec-c libraries. My code uses a
function XMLException.
Now there are different versions of libxerces-c available. In version
1.5.1 this symbol is mangled as __12XMLException
While in the version 2.1.0, it is mangled as
_ZTI12XMLException
Now, initially my code was using 2.1.0 version of shared lib. But due to
some problems (beyond reach of normal developers like me), we had to
shift to 1.5.1. I built my product using 1.5.1 version. But while
testing, in the test environment libraries of both versions were
present. [:(:(:( ].
So the above symbol was picked from 2.1.0 libxerces-so.lib. But now when
the final package is sent out for testing, it does not have any 2.1.0
libs. Now we get the "undefined symbol error".. :(
I have to stick to 1.5.1. how can I resolve this error????
-Ajay