[Expat-bugs] xml_status enum bug

Karl Waclawek karl at waclawek.net
Thu Jun 19 23:19:29 EDT 2003


> I was including expat.h (expat-1.95.6) into a C++ file and compiling 
> with gcc version 3.1.  It complained because:
> 
> In file included from readxml.C:9:
> ../expat-1.95.6/lib/expat.h:657: use of enum `XML_Status' without previous
>     declaration
> ../expat-1.95.6/lib/expat.h:735: multiple definition of `enum XML_Status'
> ../expat-1.95.6/lib/expat.h:657: previous definition here
> 
> I had to move a few declarations that used XML_Status down below the 
> enum to make it work.  The file is attached.
> 

This "bug" has long been fixed in CVS. 
Not all compilers have a problem with it.

Karl



More information about the Expat-bugs mailing list