[xsd-users] parser expat compilation error
Dario Luzzi
dario.luzzi at qmap.it
Mon Jan 18 11:30:02 EST 2016
Hi all,
I just discovered xsd tool and started looking at it.
Starting with a xsd document and the xsd tool I created the parser
skeleton using expat libraries.
Now, I tried compiling the skeleton but I'm getting a ton of errors like
this:
In file included from /usr/include/xsd/cxx/parser/expat/elements.hxx:360:0,
from DATEXIISchema_1_0_1_0-pskel.hxx:451,
from DATEXIISchema_1_0_1_0-pskel.cxx:41:
/usr/include/xsd/cxx/parser/expat/elements.txx: In member function ‘bool
xsd::cxx::parser::expat::document<C>::parse(std::istream&, const
std::basic_string<_CharT>*, const std::basic_string<_CharT>*,
xsd::cxx::xml::error_handler<C>&)’:
/usr/include/xsd/cxx/parser/expat/elements.txx:282:22: error: no match
for ‘operator==’ (operand types are
‘xsd::cxx::parser::expat::parser_auto_ptr’ and ‘int’)
if (parser == 0)
^
/usr/include/xsd/cxx/parser/expat/elements.txx:282:22: note: candidates are:
In file included from /usr/include/xsd/cxx/parser/xml-schema.hxx:569:0,
from DATEXIISchema_1_0_1_0-pskel.hxx:446,
from DATEXIISchema_1_0_1_0-pskel.cxx:41:
/usr/include/xsd/cxx/parser/xml-schema.txx:15:7: note: template<class C>
bool xsd::cxx::parser::operator==(const
xsd::cxx::parser::string_sequence<C>&, const
xsd::cxx::parser::string_sequence<C>&)
operator== (const string_sequence<C>& a, const
string_sequence<C>& b)
^
any idea what's wrong?
More information about the xsd-users
mailing list