Okay, the problem seems the item "INFINITY".
If I change this to INFINITYS in SchemaSymbols.hpp 
SAX2Count compiles.

Should I rename INFINITY in all sources to another name 
and then recompile the library ?

Is this a knwon problem ?

On Tue, Jun 04, 2002 at 08:46:00AM +0200, Thomas Porschberg wrote:
> 
> I tried to build the samples from xercesc_1_7 with gcc3.1 (none thread).
> I substituted stricmp, strnicmp with strcasecmp,strncasecmp in
> the util/XMLString.cpp.
> 
> But the next error appears on compiling SAX2Count. 
> 
> g++ -c -DLINUX -DAPP_NO_THREADS -fpic -c -w -O -I. 
>-I/home/porschberg/xerces-c-src1_7_0/include -o 
>/home/porschberg/xerces-c-src1_7_0/bin/obj/SAX2Count/SAX2Count.o 
>/home/porschberg/xerces-c-src1_7_0/samples/SAX2Count/SAX2Count.cpp
> In file included from 
>/home/porschberg/xerces-c-src1_7_0/include/xercesc/validators/datatype/IDDatatypeValidator.hpp:96,
>                  from 
>/home/porschberg/xerces-c-src1_7_0/include/xercesc/validators/schema/SchemaGrammar.hpp:116,
>                  from 
>/home/porschberg/xerces-c-src1_7_0/include/xercesc/validators/schema/SchemaValidator.hpp:99,
>                  from 
>/home/porschberg/xerces-c-src1_7_0/include/xercesc/internal/XMLScanner.hpp:214,
>                  from 
>/home/porschberg/xerces-c-src1_7_0/include/xercesc/internal/VecAttributesImpl.hpp:89,
>                  from 
>/home/porschberg/xerces-c-src1_7_0/include/xercesc/parsers/SAX2XMLReaderImpl.hpp:151,
>                  from 
>/home/porschberg/xerces-c-src1_7_0/include/xercesc/sax2/XMLReaderFactory.hpp:79,
>                  from 
>/home/porschberg/xerces-c-src1_7_0/samples/SAX2Count/SAX2Count.hpp:80,
>                  from 
>/home/porschberg/xerces-c-src1_7_0/samples/SAX2Count/SAX2Count.cpp:115:
> 
>/home/porschberg/xerces-c-src1_7_0/include/xercesc/validators/schema/SchemaSymbols.hpp:262:
> parse
>    error before `__extension__'
> 
>/home/porschberg/xerces-c-src1_7_0/include/xercesc/validators/schema/SchemaSymbols.hpp:262:
> missing
>    ';' before right brace
> 
>/home/porschberg/xerces-c-src1_7_0/include/xercesc/validators/schema/SchemaSymbols.hpp:264:
> parse
>    error before `}' token
> gmake[1]: *** [/home/porschberg/xerces-c-src1_7_0/bin/obj/SAX2Count/SAX2Count.o] 
>Error 1
> gmake[1]: Leaving directory `/home/porschberg/xerces-c-src1_7_0/samples/SAX2Count'
> gmake: *** [sax2count] Error 2
> 
> ################################################
> 
> The related code piece in SchemaSymbols.hpp is a enum initialisation:
> 
>     // group orders
>     enum{ INFINITY = -2, UNBOUNDED = -1, NILLABLE = 1, ABSTRACT = 2, FIXED = 4}; 
>//line 262
>  
>     enum{ CHOICE = 0, SEQUENCE= 1, ALL = 2 };
> 
> ###############################################
> 
> I have no idea what's wrong here.
> Any help ?
> 
> thomas
> 
> 
> -- 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 

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

Reply via email to