You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Thomas Porschberg <th...@osp-dd.de> on 2002/06/05 15:03:08 UTC
building samples / linker problem
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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: building samples / linker problem
Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Thomas Porschberg" <th...@osp-dd.de> writes:
> 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. ;-)
Hey Thomas that's excellent. Could you send a list of the steps you
needed to take to get it to work? We could incorporate them.
Cheers,
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: building samples / linker problem
Posted by Thomas Porschberg <th...@osp-dd.de>.
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: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
--
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org