Hello,
When attempting to compile a program which includes the following
On Thu, 27 May 2010 11:11:31 -0700 (PDT), Artem Kozlov
wrote: headers (at once):
#include
#include I suspect this is because the JSON parser is implemented in Spirit.Classic. I eventually want to switch to Qi, but until then, I have no idea what to do. I thought Classic and Qi can coexist, but maybe I'm doing something wrong.
It should co-exist. What are the problems, exactly?
Well, here is the bunch of errors that I see during compilation:
/usr/include/boost/spirit/home/classic/attribute/closure_fwd.hpp:33: error: expected type-specifier
/usr/include/boost/spirit/home/classic/attribute/closure_fwd.hpp:33: error: expected '>'
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:68: error: 'tuple_element' in namespace 'boost::phoenix' does not name a type
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:68: error: expected unqualified-id before '<' token
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:88: error: invalid use of '::'
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:88: error: expected ';' before '<' token
/usr/include/boost/spirit/home/classic/attribute/closure.hpp: In constructor 'boost::spirit::classic::closure_context<ClosureT>::closure_context(const ClosureT&)':
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:75: error: class 'boost::spirit::classic::closure_context<ClosureT>' does not have any field named 'frame'
/usr/include/boost/spirit/home/classic/attribute/closure.hpp: In member function 'ResultT& boost::spirit::classic::closure_context<ClosureT>::post_parse(ResultT&, const ParserT&, const ScannerT&)':
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:84: error: 'frame' was not declared in this scope
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:84: error: 'tuple_index' is not a member of 'boost::phoenix'
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:84: error: expected primary-expression before ')' token
/usr/include/boost/spirit/home/classic/attribute/closure.hpp: At global scope:
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:128: error: invalid use of '::'
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:128: error: expected ';' before '<' token
/usr/include/boost/spirit/home/classic/attribute/closure.hpp: In constructor 'boost::spirit::classic::init_closure_context<ClosureT>::init_closure_context(const ClosureT&)':
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:115: error: class 'boost::spirit::classic::init_closure_context<ClosureT>' does not have any field named 'frame'
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:115: error: 'convert_actors' is not a member of 'boost::phoenix'
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:115: error: expected primary-expression before '>' token
/usr/include/boost/spirit/home/classic/attribute/closure.hpp: In member function 'ResultT& boost::spirit::classic::init_closure_context<ClosureT>::post_parse(ResultT&, const ParserT&, const ScannerT&)':
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:124: error: 'frame' was not declared in this scope
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:124: error: 'tuple_index' is not a member of 'boost::phoenix'
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:124: error: expected primary-expression before ')' token
/usr/include/boost/spirit/home/classic/attribute/closure.hpp: At global scope:
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:144: error: 'tuple_element' in namespace 'boost::phoenix' does not name a type
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:144: error: expected unqualified-id before '<' token
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:149: error: 'attr_t' was not declared in this scope
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:149: error: template argument 2 is invalid
/usr/include/boost/spirit/home/classic/attribute/closure.hpp:212: error: redeclared with 13 template parameter(s)
/usr/include/boost/spirit/home/classic/attribute/closure_fwd.hpp:62: note: previous declaration 'template