Problem with shared libraries

Arun Saini, Gurgaon arun@ggn.hcltech.com
Tue Jun 26 09:26:00 GMT 2001


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
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



More information about the Gcc-help mailing list