游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1703|回复: 0

请教一个关于BOOST::REGEX的编译错误问题

[复制链接]

10

主题

19

帖子

19

积分

新手上路

Rank: 1

积分
19
发表于 2005-12-24 22:07:00 | 显示全部楼层 |阅读模式
各位大侠,我想在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.

垦请各位大侠指点迷津.....................................................

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-23 02:22

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表