You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by Götz Botterweck <bo...@iwi.uni-koblenz.de> on 2000/03/21 21:26:28 UTC

Want to compile Xerces-PERL 1.0 - Where to get Xerces C++ XML Par ser version 3?

I want to use Xerces Perl 1.0.
The Readme tells me:

	BUILD REQUIREMENTS: 
	[...]
	4. The XmlApache Xerces C++ XML Parser version 3.
	You will need to build this first and set up your environment to so
that the resulting DLL is in your path. 

But at http://xml.apache.org/dist/ I find only the versions 1.0.0, 1.0.1 and
1.1.0 of Xerces-C 

If I try building Xerces-Perl on top of Xerces-C 1.1.0 (after
installing/building Perl 5.00503, SWIG 1.1 and ICU Feb-1st-2000) I get the
following error:

	Xerces_wrap.c(8920) : error C2039: 'strcmp' : is not a member of
'DOMString'
      	c:/xmlapache/xerces/c/include/dom/DOMString.hpp(125) : see
declaration of 'DOMString'

(A code piece is pasted below.)

Any suggestions?
TIA!
Goetz


--------------------------------------------------------------------------
Code piece from xerces_wrap.c, Error Location marked with
--------------------------------------------------------------------------

#define DOMString_strcmp(_swigobj,_swigarg0)  (_swigobj->strcmp(_swigarg0))
XS(_wrap_DOMString_strcmp) {

    int  _result;
    DOMString * _arg0;
    DOMString * _arg1;
    int argvi = 0;
    dXSARGS ;

    cv = cv;
    if ((items < 2) || (items > 2)) 
        croak("Usage: DOMString_strcmp(DOMString *,other);");
    if (SWIG_GetPtr(ST(0),(void **) &_arg0,"DOMStringPtr")) {
        croak("Type error in argument 1 of DOMString_strcmp. Expected
DOMStringPtr.");
        XSRETURN(1);
    }
    if (SWIG_GetPtr(ST(1),(void **) &_arg1,"DOMStringPtr")) {
        croak("Type error in argument 2 of DOMString_strcmp. Expected
DOMStringPtr.");
        XSRETURN(1);
    }
{
	try {
		    _result = (int )DOMString_strcmp(_arg0,*_arg1);
<###ERROR###HERE#### (Line 8920)

	} catch (DOM_DOMException* e) {
		switch ( e->code ) {
			case DOM_DOMException::INDEX_SIZE_ERR:	
				croak ("INDEX_SIZE_ERR");
				break;