xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Smith" <mrs...@gmail.com>
Subject Re: Unresolved symbol on HP-UX 11.11
Date Thu, 10 Jul 2008 14:23:08 GMT
Hi Boris,

Boris Kolpackov <boris@codesynthesis.com> wrote:

> The fact that you get exactly the same error when building
> Xerces-C++ with aCC and gcc means that something is not right
> with your Xerces-C++ build. Perhaps there were object files
> left from the previous build (did you run gmake clean)?

There aren't any old object files: I built xercesc directly after
extracting the tar file.

> I suggest that you try a clean rebuild and make sure that
> both your application and Xerces-C++ are built with gcc
> and that you actually link (both when building your
> application and at runtime) to the version of Xerces-C++
> library that you built with gcc.

I think It's always the same library.

Building the lib:
echo Building /home/afbuild/tmpch/xerces-c-src_2_8_0/lib/libxerces-c.sl.28.0
g++ -DHPUX -fPIC -shared  -Wl,+h,libxerces-c.sl.28 -o
-lpthread -lnsl -L/usr/lib -L/usr/local/lib

Building the sample:
g++ -c -DHPUX -fpic -I.
-I/home/afbuild/tmpch/xerces-c-src_2_8_0/include -c -w -O -DNDEBUG
g++ -DHPUX -fpic  -L/usr/lib -L/usr/local/lib
/home/afbuild/tmpch/xerces-c-src_2_8_0/bin/obj/DOMCount/DOMCount.o -o
-L/home/afbuild/tmpch/xerces-c-src_2_8_0/lib -lxerces-c -lpthread

Checking which libs are loaded at runtime:
% odump -sllibloadlist ./DOMCount
Shared Library Load List for ./DOMCount:
Order    Name
    0    ./DOMCount
    1     ^ /home/afbuild/tmpch/xerces-c-src_2_8_0/lib/libxerces-c.sl.28
    2     ^  ^ /usr/lib/libpthread.1
    3     ^  ^ /usr/lib/libnsl.1
    4     ^  ^  ^ /usr/lib/libxti.2

Thanks advance for your help


View raw message