--- Begin Message ---
Hello,

I'm new to XML but an old hand at Perl.  I'd really like to be able to use 
Xerces.pm.  I have the xerces 1.7 and 2.2 source code and have built both 
versions without error.  I have also have XML-Xerces-1.7.0-1  and 
XML-Xerces-2.0.0-3.  With both releases of XML-Xerces, I set the vars 
XERCES_INCLUDE and XERCES_LIB to point to the appropriate release of xerces.

I found that I had to add some "using namespace xercesc" directives in the 
Handler code to get the make to work.  I was able to get the 
blib/arch/auto/Handler/Handler.a created by running make in the Handler 
directory.   But the compile of Xerces.C fails for what I think is again a 
namespace issue.

I was wondering if you've seen this namespace problem before and if you know 
of a way to solve it, especially for Xerces.C.

====Here's the command line to compile Xerces.C :
 cc -c  -I. -IHandler 
-I/home/trakel/doc/freeware/perl/xml/xerces/xerces-c-src2_2_0/include 
-D_REENTRANT -DDEBIAN -D_GNU_SOURCE -O3 --pipe   -DVERSION=\"2.0.0-3\" 
-DXS_VERSION=\"2.0.0-3\" -fPIC 
"-I/usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE"   Xerces.C

======Here's the head of the error messages from the compiler:
In file included from Handler/PerlEntityResolverHandler.i:2,
                 from Xerces.C:676:
Handler/PerlEntityResolverHandler.hpp:25: syntax error before `*' token
In file included from Xerces.C:676:
Handler/PerlEntityResolverHandler.i:42: syntax error before `*' token
Handler/PerlEntityResolverHandler.i:51: register name not specified for 
`SV**sp
   '
Handler/PerlEntityResolverHandler.i:53: ISO C++ forbids declaration of `
   Perl_push_scope' with no type




=====================Here's my enivronment:=============

[EMAIL PROTECTED]:~/doc/freeware/perl/xml/modules/XML-Xerces-2.0.0-3> make 
--version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.

I'm running Suse Linux version 8.0.
cc, gcc, g++, and c++ are all version 3.2

[EMAIL PROTECTED]:~/doc/freeware/perl/xml/modules/XML-Xerces-2.0.0-3> cat 
/etc/SuSE-release
SuSE Linux 8.1 (i386)
VERSION = 8.1

[EMAIL PROTECTED]:~/doc/freeware/perl/xml/modules/XML-Xerces-2.0.0-3> uname -a
Linux trakel 2.4.19-4GB #1 Wed Nov 27 00:56:40 UTC 2002 i686 unknown

[EMAIL PROTECTED]:~/doc/freeware/perl/xml/modules/XML-Xerces-2.0.0-3> cc --version
cc (GCC) 3.2

-- 
Ted Rakel
Efeckta Technologies
1370 Bob Arnold Rd.
Steamboat Springs CO  80487
970 870 2844  x120




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


--- End Message ---

Reply via email to