This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with shared libraries
- To: "Arun Saini , Gurgaon" <arun at ggn dot hcltech dot com>,<gcc-help at gcc dot gnu dot org>
- Subject: Re: Problem with shared libraries
- From: "Yu Xuanwei" <yxwbox at email dot com dot cn>
- Date: Wed, 27 Jun 2001 09:06:57 +0800
- Cc: <gcc at gcc dot gnu dot org>
- References: <5F0021EEA434D511BE7300D0B7B6AB535716C3@MAIL2>
----- Original Message -----
From: Arun Saini , Gurgaon <arun@ggn.hcltech.com>
To: <gcc-help@gcc.gnu.org>
Cc: <gcc@gcc.gnu.org>
Sent: Wednesday, June 27, 2001 12:29 AM
Subject: Problem with shared libraries
> hi all,
>
> I have a problem while using shared libraries. I have built a shared library
> (say test.so) that used xml4c shared library (libxerces-c1_3.so) available
> from alphaworks. This library (test.so) built successfuly. Now when I try to
> use this test.so from an application. I compile the test application using
> g++ and it compiles successfuly. When I try linking it with the test.so and
If your main program is coded in C++ while your shared library is of C, you have to demangle the C++ symbols. To confirm your shared library symbols, use 'nm test.so' to see what symbols are available in fact. Or you could confirm what symbols your main program requests actually, use 'nm main.out', too.
Waiting for further information.
> with libxerces-c1_3.so it gives and error saying it found undefined
> references to some symbols in test.so which infact are all available in
> libcerces-c1_3.so. I tried the -rdynamic flag and the grouping of libraries
> for recursive search (using --add-group, --end-group) etc but to no success.
> Any ideas why this is happening.....
>
> Arun Saini