Hi Boris,
Boris Kolpackov <[EMAIL PROTECTED]> 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
/home/afbuild/tmpch/xerces-c-src_2_8_0/lib/libxerces-c.sl.28.0
-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
-DXML_USE_PTHREADS -D_REENTRANT -o
/home/afbuild/tmpch/xerces-c-src_2_8_0/bin/obj/DOMCount/DOMCount.o
/home/afbuild/tmpch/xerces-c-src_2_8_0/samples/DOMCount/DOMCount.cpp
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
/home/afbuild/tmpch/xerces-c-src_2_8_0/bin/DOMCount
-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
John