You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by Arundhati Bhowmick <ar...@hyperreal.org> on 2000/03/24 19:58:20 UTC
Re: samples:undefined reference
Christopher,
Infact you need to extract the latest TransService.cpp from cvs. This
problem was rectified recently and instead of XML_GNUG it should be
XML_GCC. Its fixed in the code now. With this change I think the command
./runConfigure -plinux -cgcc -xg++
should be sufficient to build the source without icu.
Arundhati
Christoph Kliemt wrote:
> Hi !
>
> Trying to build xerces-c-src_1_1_0/samples on a linux-box (2.2.14,
> initially was a RedHat-dist a long time ago... ;-) ) with
> glibc-2.1.2-1,binutils-2.9.5.0.22-6 with a homebrew gcc-2.95.2 i got
> a linker-error: undefined reference to
> `IconvTransService::IconvTransService(void)'
>
> Things i had to change to make it run:
> - comment out #if defined (XML_GNUG) and its #endif in
> IconvTransService.cpp (lines 129,131) to include <wctype.h>
> and rebuild libxerces-c1_1.so; btw: what is XML_GNUG ?!
> - build samples: ./runConfigure -plinux -cgcc -xg++ -minmem -nfileonly
> -tnative -rpthread. The point was "-rpthread" since configure did
> not add -lpthread to the linkerflags in Makefile by default.
>
> \\// cu christoph
>
> --
> Java ist die Fortsetzung von C mit anderen Mitteln.
Re: samples:undefined reference
Posted by Arundhati Bhowmick <ar...@hyperreal.org>.
XML_GCC is set if your platform is linux and compiler has GNUG set and
wtypes.h is also included accordingly. We over here have done build on
linux 2.91.66 and gcc ver 2.91.66, glibc 2.1.2. So, I don't think its
going to be a problem building xerces out of the box on your specified
system.
Arundhati
Christoph Kliemt wrote:
> Hi !
>
> TNX!
>
> ->"A" == Arundhati Bhowmick <ar...@hyperreal.org> writes:
>
> A> Christopher, Infact you need to extract the latest
> A> TransService.cpp from cvs.
> Oh no... not another cvs-tree on my box... have mercy... ;-)
>
> A> This problem was rectified recently and instead of XML_GNUG it
> A> should be XML_GCC.
>
> Hmm... do you know what for this macro is? Is this gcc specific?
>
> A> Its fixed in the code now.
> :-)
> A> With this change I think the command ./runConfigure -plinux -cgcc
> A> -xg++ should be sufficient to build the source without icu.
>
> We'll see... compiling c++ sources is a bit complicated on this box
> in these days since i did a lot of "unoffical" changes to the
> internals... if compiling/running fails, the default is that it is my
> fault ;-)
>
> [...]
>
> \\// christoph
> --
> Java ist die Fortsetzung von C mit anderen Mitteln.
Re: samples:undefined reference
Posted by Christoph Kliemt <Ch...@FernUni-Hagen.de>.
Hi !
TNX!
->"A" == Arundhati Bhowmick <ar...@hyperreal.org> writes:
A> Christopher, Infact you need to extract the latest
A> TransService.cpp from cvs.
Oh no... not another cvs-tree on my box... have mercy... ;-)
A> This problem was rectified recently and instead of XML_GNUG it
A> should be XML_GCC.
Hmm... do you know what for this macro is? Is this gcc specific?
A> Its fixed in the code now.
:-)
A> With this change I think the command ./runConfigure -plinux -cgcc
A> -xg++ should be sufficient to build the source without icu.
We'll see... compiling c++ sources is a bit complicated on this box
in these days since i did a lot of "unoffical" changes to the
internals... if compiling/running fails, the default is that it is my
fault ;-)
[...]
\\// christoph
--
Java ist die Fortsetzung von C mit anderen Mitteln.