[Spirit2x]: mini_c compile error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Spirit2x]: mini_c compile error

ben qhq
Hi,

there is some errors in the example ,
this is the error message of mini_c in example of r1094.  

=========================================================
In file included from mini_c.cpp:14:
mini_c.hpp:272: error: declaration of ‘typedef struct white_space<Iterator> expression<Iterator>::white_space’
mini_c.hpp:249: error: changes meaning of ‘white_space’ from ‘struct white_space<Iterator>’
mini_c.hpp:296: error: declaration of ‘typedef struct white_space<Iterator> statement<Iterator>::white_space’
mini_c.hpp:249: error: changes meaning of ‘white_space’ from ‘struct white_space<Iterator>’
mini_c.hpp:328: error: declaration of ‘typedef struct white_space<Iterator> program<Iterator>::white_space’
mini_c.hpp:249: error: changes meaning of ‘white_space’ from ‘struct white_space<Iterator>’
mini_c.hpp:342: error: declaration of ‘statement<Iterator> program<Iterator>::statement’
mini_c.hpp:293: error: changes meaning of ‘statement’ from ‘struct statement<Iterator>’
======================================================

BTW, almost none of example can be compiled in the latest version r1097.

g++ -I~/Spirit2x -I~/boost_1_38_0 -o actions actions.cpp
In file included from /home/joe/Spirit2x/boost/spirit/home/qi/string.hpp:14,
                 from /home/joe/Spirit2x/boost/spirit/home/qi.hpp:26,
                 from /home/joe/Spirit2x/boost/spirit/include/qi.hpp:11,
                 from actions.cpp:8:
/home/joe/Spirit2x/boost/spirit/home/qi/string/lit.hpp: In member function ‘typename boost::mpl::if_<boost::spirit::has_modifier<Modifiers, boost::spirit::tag::char_code_base<boost::spirit::tag::no_case> >, boost::spirit::qi::no_case_literal_string<typename boost::add_const<T2>::type, false>, boost::spirit::qi::literal_string<typename boost::add_const<T2>::type, false> >::type boost::spirit::qi::make_primitive<boost::spirit::terminal_ex<boost::spirit::tag::char_code<boost::spirit::tag::string, CharEncoding>, boost::fusion::vector1<A0> >, Modifiers, void>::op(const String&, mpl_::true_) const’:
/home/joe/Spirit2x/boost/spirit/home/qi/string/lit.hpp:225: error: expected primary-expression before ‘(’ token
/home/joe/Spirit2x/boost/spirit/home/qi/string/lit.hpp:225: error: expected primary-expression before ‘)’ token