spirit and property_tree headers conflict

Hello, When attempting to compile a program which includes the following headers (at once): #include <boost/property_tree/json_parser.hpp> #include <boost/spirit/include/qi.hpp> , I get a lot of error messages. Is there any way to resolve this conflict and compile the program without dividing it into several translation units? Thanks in advance, Artem

On Thu, 27 May 2010 11:11:31 -0700 (PDT), Artem Kozlov <akz328@yahoo.com> wrote:
Hello,
When attempting to compile a program which includes the following headers (at once):
#include <boost/property_tree/json_parser.hpp> #include <boost/spirit/include/qi.hpp>
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. Sebastian

On 5/28/10 4:59 PM, Sebastian Redl wrote:
On Thu, 27 May 2010 11:11:31 -0700 (PDT), Artem Kozlov<akz328@yahoo.com> wrote:
Hello,
When attempting to compile a program which includes the following headers (at once):
#include<boost/property_tree/json_parser.hpp> #include<boost/spirit/include/qi.hpp>
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? Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
participants (3)
-
Artem Kozlov
-
Joel de Guzman
-
Sebastian Redl