[xsd-users] skeleton does not compile with expat in parser_auto_ptr

Andrea Rigoni rigoni at igi.cnr.it
Fri Aug 7 07:48:30 EDT 2015


Hi Boris, you are right, sorry ..
As I wrote I'm new to this tool but let me tell you that I think it's
amazing !
With the code I reported I've fixed my issue so I  was wondering if it
could be usefull as a feedback.

Please find attached the simple test I took from the tutorial and the
errors of the compiler..

To build the source I was using the following tools from Arch linux:

- xsd  CodeSynthesis XSD XML Schema to C++ compiler 4.0.0
- gcc  version 5.1.0 (GCC)
- expat version 2.1.0-4


Thanks,

Andrea



2015-08-07 13:21 GMT+02:00 Boris Kolpackov <boris at codesynthesis.com>:

> Hi Andrea,
>
> Andrea Rigoni <rigoni at igi.cnr.it> writes:
>
> > Anyway I found that the code was not compiling.
> > I fix it adding this this two operators to the parser_auto_ptr class in
> > expat/elements.hpp
> >
> >         operator const bool () const { return parser_ != 0; }
> >         operator const XML_Parser & () const { return parser_; }
> >
> > Was this the right way ?
>
> No, the right way is to show exactly what you have tried (i.e.,
> command lines) and what error messages you got.
>
> Boris
>
-------------- next part --------------
/usr/local/bin/xsd cxx-parser --xml-parser expat hello.xsd
g++ -I/usr/local/include/libxsd main.cpp hello-pskel.cxx -lexpat -std=c++11 -o driver
In file included from /usr/local/include/xsd/cxx/parser/expat/elements.hxx:363:0,
                 from hello-pskel.hxx:70,
                 from main.cpp:4:
/usr/local/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/local/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)
                      ^
In file included from /usr/local/include/xsd/cxx/parser/xml-schema.hxx:569:0,
                 from hello-pskel.hxx:65,
                 from main.cpp:4:
/usr/local/include/xsd/cxx/parser/xml-schema.txx:15:7: note: candidate: 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)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.txx:15:7: note:   template argument deduction/substitution failed:
In file included from /usr/local/include/xsd/cxx/parser/expat/elements.hxx:363:0,
                 from hello-pskel.hxx:70,
                 from main.cpp:4:
/usr/local/include/xsd/cxx/parser/expat/elements.txx:282:25: note:   ‘xsd::cxx::parser::expat::parser_auto_ptr’ is not derived from ‘const xsd::cxx::parser::string_sequence<C>’
           if (parser == 0)
                         ^
In file included from /usr/local/include/xsd/cxx/parser/xml-schema.hxx:568:0,
                 from hello-pskel.hxx:65,
                 from main.cpp:4:
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:113:7: note: candidate: template<class C> bool xsd::cxx::parser::operator==(const xsd::cxx::parser::qname<C>&, const xsd::cxx::parser::qname<C>&)
       operator== (const qname<C>& a, const qname<C>& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:113:7: note:   template argument deduction/substitution failed:
In file included from /usr/local/include/xsd/cxx/parser/expat/elements.hxx:363:0,
                 from hello-pskel.hxx:70,
                 from main.cpp:4:
/usr/local/include/xsd/cxx/parser/expat/elements.txx:282:25: note:   ‘xsd::cxx::parser::expat::parser_auto_ptr’ is not derived from ‘const xsd::cxx::parser::qname<C>’
           if (parser == 0)
                         ^
In file included from /usr/local/include/xsd/cxx/parser/xml-schema.hxx:568:0,
                 from hello-pskel.hxx:65,
                 from main.cpp:4:
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:338:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::buffer&, const xsd::cxx::parser::buffer&)
       operator== (const buffer& a, const buffer& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:338:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::buffer&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:403:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::time_zone&, const xsd::cxx::parser::time_zone&)
       operator== (const time_zone& x, const time_zone& y)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:403:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::time_zone&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:445:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::gday&, const xsd::cxx::parser::gday&)
       operator== (const gday& a, const gday& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:445:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::gday&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:486:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::gmonth&, const xsd::cxx::parser::gmonth&)
       operator== (const gmonth& a, const gmonth& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:486:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::gmonth&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:527:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::gyear&, const xsd::cxx::parser::gyear&)
       operator== (const gyear& a, const gyear& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:527:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::gyear&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:582:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::gmonth_day&, const xsd::cxx::parser::gmonth_day&)
       operator== (const gmonth_day& a, const gmonth_day& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:582:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::gmonth_day&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:638:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::gyear_month&, const xsd::cxx::parser::gyear_month&)
       operator== (const gyear_month& a, const gyear_month& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:638:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::gyear_month&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:706:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::date&, const xsd::cxx::parser::date&)
       operator== (const date& a, const date& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:706:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::date&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:776:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::time&, const xsd::cxx::parser::time&)
       operator== (const time& a, const time& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:776:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::time&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:886:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::date_time&, const xsd::cxx::parser::date_time&)
       operator== (const date_time& a, const date_time& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:886:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::date_time&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:1003:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::duration&, const xsd::cxx::parser::duration&)
       operator== (const duration& a, const duration& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:1003:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::duration&’
In file included from /usr/local/include/xsd/cxx/parser/expat/elements.hxx:363:0,
                 from hello-pskel.hxx:70,
                 from main.cpp:4:
/usr/local/include/xsd/cxx/parser/expat/elements.txx:314:55: error: cannot convert ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘XML_Parser {aka XML_ParserStruct*}’ for argument ‘1’ to ‘XML_Status XML_Parse(XML_Parser, const char*, int, int)’
                   parser, buf, is.gcount (), is.eof ()) == XML_STATUS_ERROR)
                                                       ^
/usr/local/include/xsd/cxx/parser/expat/elements.txx: In instantiation of ‘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>&) [with C = char; std::istream = std::basic_istream<char>]’:
/usr/local/include/xsd/cxx/parser/expat/elements.txx:133:17:   required from ‘void xsd::cxx::parser::expat::document<C>::parse(std::istream&, const std::basic_string<_CharT>&) [with C = char; std::istream = std::basic_istream<char>]’
/usr/local/include/xsd/cxx/parser/expat/elements.txx:95:17:   required from ‘void xsd::cxx::parser::expat::document<C>::parse(const std::basic_string<_CharT>&) [with C = char]’
main.cpp:47:25:   required from here
/usr/local/include/xsd/cxx/parser/expat/elements.txx:286:25: error: no matching function for call to ‘xsd::cxx::parser::expat::document<char>::parse_begin(xsd::cxx::parser::expat::parser_auto_ptr&, const std::basic_string<char>&, xsd::cxx::xml::error_handler<char>&)’
             parse_begin (parser, system_id ? *system_id : *public_id, eh);
                         ^
/usr/local/include/xsd/cxx/parser/expat/elements.txx:362:14: note: candidate: void xsd::cxx::parser::expat::document<C>::parse_begin(XML_Parser) [with C = char; XML_Parser = XML_ParserStruct*]
         void document<C>::
              ^
/usr/local/include/xsd/cxx/parser/expat/elements.txx:362:14: note:   candidate expects 1 argument, 3 provided
/usr/local/include/xsd/cxx/parser/expat/elements.txx:372:14: note: candidate: void xsd::cxx::parser::expat::document<C>::parse_begin(XML_Parser, const std::basic_string<_CharT>&) [with C = char; XML_Parser = XML_ParserStruct*]
         void document<C>::
              ^
/usr/local/include/xsd/cxx/parser/expat/elements.txx:372:14: note:   candidate expects 2 arguments, 3 provided
/usr/local/include/xsd/cxx/parser/expat/elements.txx:383:14: note: candidate: void xsd::cxx::parser::expat::document<C>::parse_begin(XML_Parser, xsd::cxx::xml::error_handler<C>&) [with C = char; XML_Parser = XML_ParserStruct*]
         void document<C>::
              ^
/usr/local/include/xsd/cxx/parser/expat/elements.txx:383:14: note:   candidate expects 2 arguments, 3 provided
/usr/local/include/xsd/cxx/parser/expat/elements.txx:393:14: note: candidate: void xsd::cxx::parser::expat::document<C>::parse_begin(XML_Parser, const std::basic_string<_CharT>&, xsd::cxx::xml::error_handler<C>&) [with C = char; XML_Parser = XML_ParserStruct*]
         void document<C>::
              ^
/usr/local/include/xsd/cxx/parser/expat/elements.txx:393:14: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘XML_Parser {aka XML_ParserStruct*}’
/usr/local/include/xsd/cxx/parser/expat/elements.txx:288:25: error: no matching function for call to ‘xsd::cxx::parser::expat::document<char>::parse_begin(xsd::cxx::parser::expat::parser_auto_ptr&, xsd::cxx::xml::error_handler<char>&)’
             parse_begin (parser, eh);
                         ^
/usr/local/include/xsd/cxx/parser/expat/elements.txx:362:14: note: candidate: void xsd::cxx::parser::expat::document<C>::parse_begin(XML_Parser) [with C = char; XML_Parser = XML_ParserStruct*]
         void document<C>::
              ^
/usr/local/include/xsd/cxx/parser/expat/elements.txx:362:14: note:   candidate expects 1 argument, 2 provided
/usr/local/include/xsd/cxx/parser/expat/elements.txx:372:14: note: candidate: void xsd::cxx::parser::expat::document<C>::parse_begin(XML_Parser, const std::basic_string<_CharT>&) [with C = char; XML_Parser = XML_ParserStruct*]
         void document<C>::
              ^
/usr/local/include/xsd/cxx/parser/expat/elements.txx:372:14: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘XML_Parser {aka XML_ParserStruct*}’
/usr/local/include/xsd/cxx/parser/expat/elements.txx:383:14: note: candidate: void xsd::cxx::parser::expat::document<C>::parse_begin(XML_Parser, xsd::cxx::xml::error_handler<C>&) [with C = char; XML_Parser = XML_ParserStruct*]
         void document<C>::
              ^
/usr/local/include/xsd/cxx/parser/expat/elements.txx:383:14: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘XML_Parser {aka XML_ParserStruct*}’
/usr/local/include/xsd/cxx/parser/expat/elements.txx:393:14: note: candidate: void xsd::cxx::parser::expat::document<C>::parse_begin(XML_Parser, const std::basic_string<_CharT>&, xsd::cxx::xml::error_handler<C>&) [with C = char; XML_Parser = XML_ParserStruct*]
         void document<C>::
              ^
/usr/local/include/xsd/cxx/parser/expat/elements.txx:393:14: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/local/include/xsd/cxx/parser/expat/elements.hxx:363:0,
                 from hello-pskel.hxx:70,
                 from hello-pskel.cxx:41:
/usr/local/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/local/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)
                      ^
In file included from /usr/local/include/xsd/cxx/parser/xml-schema.hxx:569:0,
                 from hello-pskel.hxx:65,
                 from hello-pskel.cxx:41:
/usr/local/include/xsd/cxx/parser/xml-schema.txx:15:7: note: candidate: 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)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.txx:15:7: note:   template argument deduction/substitution failed:
In file included from /usr/local/include/xsd/cxx/parser/expat/elements.hxx:363:0,
                 from hello-pskel.hxx:70,
                 from hello-pskel.cxx:41:
/usr/local/include/xsd/cxx/parser/expat/elements.txx:282:25: note:   ‘xsd::cxx::parser::expat::parser_auto_ptr’ is not derived from ‘const xsd::cxx::parser::string_sequence<C>’
           if (parser == 0)
                         ^
In file included from /usr/local/include/xsd/cxx/parser/xml-schema.hxx:568:0,
                 from hello-pskel.hxx:65,
                 from hello-pskel.cxx:41:
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:113:7: note: candidate: template<class C> bool xsd::cxx::parser::operator==(const xsd::cxx::parser::qname<C>&, const xsd::cxx::parser::qname<C>&)
       operator== (const qname<C>& a, const qname<C>& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:113:7: note:   template argument deduction/substitution failed:
In file included from /usr/local/include/xsd/cxx/parser/expat/elements.hxx:363:0,
                 from hello-pskel.hxx:70,
                 from hello-pskel.cxx:41:
/usr/local/include/xsd/cxx/parser/expat/elements.txx:282:25: note:   ‘xsd::cxx::parser::expat::parser_auto_ptr’ is not derived from ‘const xsd::cxx::parser::qname<C>’
           if (parser == 0)
                         ^
In file included from /usr/local/include/xsd/cxx/parser/xml-schema.hxx:568:0,
                 from hello-pskel.hxx:65,
                 from hello-pskel.cxx:41:
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:338:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::buffer&, const xsd::cxx::parser::buffer&)
       operator== (const buffer& a, const buffer& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:338:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::buffer&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:403:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::time_zone&, const xsd::cxx::parser::time_zone&)
       operator== (const time_zone& x, const time_zone& y)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:403:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::time_zone&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:445:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::gday&, const xsd::cxx::parser::gday&)
       operator== (const gday& a, const gday& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:445:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::gday&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:486:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::gmonth&, const xsd::cxx::parser::gmonth&)
       operator== (const gmonth& a, const gmonth& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:486:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::gmonth&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:527:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::gyear&, const xsd::cxx::parser::gyear&)
       operator== (const gyear& a, const gyear& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:527:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::gyear&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:582:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::gmonth_day&, const xsd::cxx::parser::gmonth_day&)
       operator== (const gmonth_day& a, const gmonth_day& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:582:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::gmonth_day&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:638:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::gyear_month&, const xsd::cxx::parser::gyear_month&)
       operator== (const gyear_month& a, const gyear_month& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:638:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::gyear_month&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:706:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::date&, const xsd::cxx::parser::date&)
       operator== (const date& a, const date& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:706:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::date&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:776:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::time&, const xsd::cxx::parser::time&)
       operator== (const time& a, const time& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:776:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::time&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:886:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::date_time&, const xsd::cxx::parser::date_time&)
       operator== (const date_time& a, const date_time& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:886:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::date_time&’
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:1003:7: note: candidate: bool xsd::cxx::parser::operator==(const xsd::cxx::parser::duration&, const xsd::cxx::parser::duration&)
       operator== (const duration& a, const duration& b)
       ^
/usr/local/include/xsd/cxx/parser/xml-schema.ixx:1003:7: note:   no known conversion for argument 1 from ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘const xsd::cxx::parser::duration&’
In file included from /usr/local/include/xsd/cxx/parser/expat/elements.hxx:363:0,
                 from hello-pskel.hxx:70,
                 from hello-pskel.cxx:41:
/usr/local/include/xsd/cxx/parser/expat/elements.txx:314:55: error: cannot convert ‘xsd::cxx::parser::expat::parser_auto_ptr’ to ‘XML_Parser {aka XML_ParserStruct*}’ for argument ‘1’ to ‘XML_Status XML_Parse(XML_Parser, const char*, int, int)’
                   parser, buf, is.gcount (), is.eof ()) == XML_STATUS_ERROR)
                                                       ^
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expat_test.tar.gz
Type: application/x-gzip
Size: 963 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20150807/a65e3dd1/expat_test.tar-0001.bin


More information about the xsd-users mailing list