Re: xml_status enum bug
"Karl Waclawek" <[email protected]>
| Newsgroups | gmane.text.xml.expat.bugs |
|---|---|
| Message-ID | <002a01c336d2$611230c0$0207a8c0@karl> |
> 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