|
|
各位大侠,我想在MFC程序中使用正则表达式,
在加入#include <boost/regex.hpp>后编译,出现如下错误:
e:\vc代码库\boost_1_33_1\boost\mpl\int_fwd.hpp(22) : error C2143: syntax error : missing ',' before 'constant'
e:\vc代码库\boost_1_33_1\boost\mpl\aux_\integral_wrapper.hpp(42) : error C2143: syntax error : missing ',' before 'constant'
e:\vc代码库\boost_1_33_1\boost\mpl\aux_\template_arity_fwd.hpp(19) : error C2059: syntax error : '>'
e:\vc代码库\boost_1_33_1\boost\mpl\aux_\template_arity_fwd.hpp(19) : error C2992: 'template_arity' : invalid or missing template parameter list
e:\vc代码库\boost_1_33_1\boost\mpl\aux_\template_arity_fwd.hpp(19) : see declaration of 'template_arity'
e:\vc代码库\boost_1_33_1\boost\regex\v4\regex_raw_buffer.hpp(46) : error C2143: syntax error : missing ',' before 'constant'
e:\vc代码库\boost_1_33_1\boost\regex\v4\char_regex_traits.hpp(34) : error C2504: 'regex_traits' : base class undefined
e:\vc代码库\boost_1_33_1\boost\regex\v4\char_regex_traits.hpp(34) : see reference to class template instantiation 'deprecated::char_regex_traits_i<charT>' being compiled
e:\vc代码库\boost_1_33_1\boost\regex\v4\char_regex_traits.hpp(34) : error C2143: syntax error : missing ',' before '<'
e:\vc代码库\boost_1_33_1\boost\regex\v4\char_regex_traits.hpp(34) : see reference to class template instantiation 'deprecated::char_regex_traits_i<charT>' being compiled
e:\vc代码库\boost_1_33_1\boost\regex\v4\char_regex_traits.hpp(34) : error C2059: syntax error : '<'
e:\vc代码库\boost_1_33_1\boost\regex\v4\char_regex_traits.hpp(34) : see reference to class template instantiation 'deprecated::char_regex_traits_i<charT>' being compiled
e:\vc代码库\boost_1_33_1\boost\regex\v4\char_regex_traits.hpp(60) : fatal error C1506: unrecoverable block scoping error
Error executing cl.exe.
垦请各位大侠指点迷津.....................................................
|
|