I renamed the shared library from
libxerces-c1_7_0 to libxerces-c1_7_0.sl
and now all the examples work with gcc3.1 on HPUX!

At the moment I'am happy. ;-)


On Wed, Jun 05, 2002 at 03:03:08PM +0200, Thomas Porschberg wrote:
> I tried to build the samples with gcc3.1 on HPUX:
> 
> library is in: /opt/xerces-c-src1_7_0/lib/libxerces-c1_7_0
> 
> Here the output from the compilation:
> 
> hp-sport(pberg):/opt/xerces-c-src1_7_0/samples> make
> Building SAXPrint
> /usr/local/bin/gmake -C SAXPrint 
> gmake[1]: Entering directory `/opt/xerces-c-src1_7_0/samples/SAXPrint'
> mkdir -p /opt/xerces-c-src1_7_0/bin/obj/SAXPrint
> g++ -c -DHPUX -DAPP_NO_THREADS -fpic -c -w -O -I. -I/opt/xerces-c-src1_7_0/include 
>-o /opt/xerces-c-src1_7_0/bin/obj/SAXPrint/SAXPrint.o 
>/opt/xerces-c-src1_7_0/samples/SAXPrint/SAXPrint.cpp
> g++ -c -DHPUX -DAPP_NO_THREADS -fpic -c -w -O -I. -I/opt/xerces-c-src1_7_0/include 
>-o /opt/xerces-c-src1_7_0/bin/obj/SAXPrint/SAXPrintHandlers.o 
>/opt/xerces-c-src1_7_0/samples/SAXPrint/SAXPrintHandlers.cpp
> g++ -DHPUX -fpic  -Wl,-L/opt/xerces-c-src1_7_0/lib \
>     /opt/xerces-c-src1_7_0/bin/obj/SAXPrint/SAXPrint.o \
>     /opt/xerces-c-src1_7_0/bin/obj/SAXPrint/SAXPrintHandlers.o \
>     -o /opt/xerces-c-src1_7_0/bin/SAXPrint -L/opt/xerces-c-src1_7_0/lib 
>-lxerces-c1_7_0 -lc       
> /usr/ccs/bin/ld: Can't find library for -lxerces-c1_7_0
> collect2: ld returned 1 exit status
> gmake[1]: *** [/opt/xerces-c-src1_7_0/bin/SAXPrint] Error 1
> gmake[1]: Leaving directory `/opt/xerces-c-src1_7_0/samples/SAXPrint'
> gmake: *** [saxprint] Error 2
> 
> 
> hp-sport(pberg):/opt/xerces-c-src1_7_0/samples> echo $LD_LIBRARY_PATH
> /opt/xerces-c-src1_7_0/lib:/opt/gcc/gcc-3.1/lib
> 
> hp-sport(pberg):/opt/xerces-c-src1_7_0/samples> echo $SHLIB_PATH
> /opt/xerces-c-src1_7_0/lib
> 
> 
> I do not understand why ld did not find the library.
> Can anyone explain ?
> 
> thomas
> 
> 
> -- 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to