"������" <[EMAIL PROTECTED]> writes:

> Welcome Xerces Developer!
> Using SWIG version: SWIG_1_3

[snip]

> swig -I. -ILib -ILib/perl5 -I. -IHandler
> -I/home/xduan/xerces-c-src1_5_0/include
>  -DSWIG_1_3 -package XML::Xerces -perl5 -c++ -shadow -o Xerces.C
>  Xerces.i

First, why are you setting XERCES_DEVEL? This is causing swig to
regenerate Xerces.C and Xerces.pm, which is slow. The only reason to
do this is if you want to modify the source code.

> gcc -c -I. -IHandler -I/home/xduan/xerces-c-src1_5_0/include -D_REENTRANT
> -DDEBI
> AN -DSWIG_1_3 -O    -DVERSION=\"1.5.3\" -DXS_VERSION=\"1.5.3\" -fPIC
> -I/usr/loca
> l/lib/perl5/5.00503/sun4-solaris/CORE  Xerces.C
> In file included from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/../../.
> ./../include/g++-3/strstream.h:32,
>                  from Xerces.C:462:
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/../../../../include/g++-3
> /ios
> tream.h:97: `ostream::operator <<(char)' has already been declared in
> `ostream'
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/../../../../include/g++-3
> /ios
> tream.h:217: `istream::operator >>(char &)' has already been declared in
> `istrea
> m'

Damn. This is the same bug I just fixed for PerlExceptionHandler.cpp
on RedHat 6.2. Try adding an #undef bool just before the #include
<strstream.h> in Xerces.C, and see if that works. 

I'll try it out on the solaris machine I have available.

jas.

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

Reply via email to