您现在的位置:首页 > 教案模板 > 正文

vc2005下用boost regex链接错误,不能解析boost::re(5)

2019-09-21 23:02 网络整理 教案网

关于运行BOOST的REGEX带的例子的问题

我用BCB6编译<em>regex</em>_split_example_2.cpp后运行产生地址访问错误,但使用VC6编译后运行就没有错。rn难道是BCB中需要什么特殊参数吗?rn但用BCB6编译链接完全没错,用VC6时链接时还产生警告。

boost regex的问题,debug下出错">高分求助,boost regex的问题,debug下出错

错误 1 fatal error C1189: #error : "Incompatible build options" e:\<em>boost</em>_1_41_0_2\<em>boost</em>_1_41_0\<em>boost</em>\config\auto_link.hpprnrn在release下可以通过,非常奇怪的问题。rn

boost regex 编译问题: boost 成功编译了,可 regex 没有通过?">boost regex 编译问题: boost 成功编译了,可 regex 没有通过?

<em>boost</em> <em>regex</em> 编译问题: <em>boost</em> 成功编译了,可 <em>regex</em> 没有通过?rnrn我的环境: vs 2005 rnrn没有改动过<em>boost</em>的源代码,可是提示下面的错误信息rnrnD:\c++\<em>boost</em>\<em>boost</em>_1_33_1\libs\<em>regex</em>\build>nmake vc8.makrnrnMicrosoft (R) 程序维护实用工具 8.00.50727.42 版rn版权所有 (C) Microsoft Corporation。保留所有权利。rnrnBuilding Boost.Regex without ICU / Unicode support:rnHint: set ICU_PATH on the nmake command line to pointrnto your ICU installation if you have one.rn cl /nologo /MT /W3 /EHsc /O2 /GF /Gy /I..\..\..\ /D_MT /DWIN32 /DNDEBUrnG /D_MBCS /D_LIB /FD /Zc:wchar_t /c -Y- -Fo./vc80/lib<em>boost</em>_<em>regex</em>-vc80-mt-s-1_3rn3_1/ -Fdvc80/lib<em>boost</em>_<em>regex</em>-vc80-mt-s-1_33_1.pdb ../src/<em>regex</em>_traits_defaults.cprnprn<em>regex</em>_traits_defaults.cpprn../src/<em>regex</em>_traits_defaults.cpp : warning C4819: 该文件包含<em>不能</em>在当前代码页(936rn)中表示的字符。

请将该文件保存为 Unicode 格式以防止数据丢失rn../src/<em>regex</em>_traits_defaults.cpp(670) : warning C4819: 该文件包含<em>不能</em>在当前代码rn页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失rn../src/<em>regex</em>_traits_defaults.cpp(690) : fatal error C1071: 在注释中遇到意外的文rn件结束rnNMAKE : fatal error U1077: “"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\rncl.EXE"”: 返回代码“0x2”rnStop.rnrnrn

boost regex,为什么提示cmatch, regex,regex_search 都不是boost的成员呢">请问boost regex,为什么提示cmatch, regex,regex_search 都不是boost的成员呢

我是用的<em>vc2005</em>, <em>boost</em>-1_33_0, as the title, 第一张图中的错误提示。rn但是输入<em>boost</em>:: , <em>vc2005</em>会自动显示出<em>boost</em>的所有成员,里面明明有这些函数和类型的(第二张图)。rn图一rn[img=http://static13.photo.sina.com.cn/orignal/63ce05cag9340a42f0c8c&690][/img]rn图二rn[img=http://static15.photo.sina.com.cn/orignal/63ce05cag9340a43e469e&690][/img]rnrn

boost regex 库vs2003,vs2005, vs2008编译">boost regex 库vs2003,vs2005, vs2008编译

<em>boost</em> 库用vc6编译没问题,但是用vs2003,vs2005,vs2008编译总是不过,而且里面的vc7.mak文件也<em>不能</em>正常转换为工程文件。这里修改了下vc7.mak 并写了通用的批处理文件来编译之。

regex库">VS2008下编译好的Boost的regex库

VS2008下,已经编译好的Boost1.47.0的<em>regex</em>库。直接解压缩到目录即可,无需再次编译。

boost中regex使用时出现的问题">boost中regex使用时出现的问题

在使用到<em>boost</em>库中的<em>regex</em>的so文件中,如果出现如下错误:undefined symbol: _ZN5<em>boost</em>9<em>re_detail</em>14verify_optionsEjNS_15<em>regex</em>_constants12_match_flagsE说明在生成so文件时缺少引用<em>regex</em>的源文件,此时需要在makefile中或者编译时加上<em>regex</em>的库,然后重新编译如果在重新编译时出现

boost的regex无法匹配数字.换行?">boost的regex无法匹配数字.换行?

[code=C/C++]<em>regex</em> regstr;rn regstr= " (?\\d*?)沙发支持323·2!! 沙发支rn持323·2!! 里的内容..晕啊...rn

boost::regex执行crash的问题">关于boost::regex执行crash的问题

最近在学<em>boost</em>::<em>regex</em>,编译完库后写了个小程序,但在执行r.assign()时会crash,调试进去后发现是<em>regex</em>::do_assign(...)这个方法没调用进去(用VS2008按F11跟不进去),但实现跟声明都是在其头文件里的,如果实现没有被放到dll里面,按理链接也不会过,所以百思不得其解,还望高手指点,在此谢过!rn#include rn#include "<em>boost</em>/<em>regex</em>.hpp"rnusing namespace std;rnusing namespace <em>boost</em>;rnrnint main()rn rn <em>regex</em> r;rn [color=#FF0000]r.assign("abab"); //执行此句crash[/color] rn string s("cdabcdabcd");rn cmatch matchs;rn if(<em>regex</em>_match(s, r))rn rn cout << "Match" << endl;rn rn elsern rn cout << "Unmatch" << endl;rn rn return 1;rn

boost regex 平衡组/递归匹配问题">boost regex 平衡组/递归匹配问题

用的是<em>boost</em> <em>regex</em> 默认的perl正则语法。rn又有A(sdf()dd()f()ss()dd()ff);B(sdf()dd())rn想匹配A(....)里面的东西。rn正则我是这么写的:rn[code=Perl]rn<em>boost</em>::<em>regex</em> reg(rn "A\\("rn "[^()]*"rn "("rn "("rn "(?'Open'\\()"rn "[^()]*"rn ")+"rn "("rn "(?'-Open'\\))"rn "[^()]*"rn ")+"rn ")*"rn "(?(Open)(?!))"rn "\\)");rn[/code]rn"(?(Open)(?!))"加了这句,程序就挂了!

boost 1.33 中的regex">vc6.0如何 编译boost 1.33 中的regex

vc6.0如何 编译<em>boost</em> 1.33 中的<em>regex</em>rn是不是要下个python来安装

boost regex ("\\d*|)为什么有得不到字串">boost regex ("\\d*|)为什么有得不到字串

#includern#include rnint main()rnrnstd::string str("fgdfdf34535345");rn<em>boost</em>::<em>regex</em> reg("\\d*");rn<em>boost</em>::smatch what;rnif(<em>boost</em>::<em>regex</em>_search(str,what,reg))rnrn//这里语句会被执行,但是显示的时候只有一个空的字串rn//但是<em>regex</em>的匹配字串被换成("\\w*\\d*")的时候就能输出后边的数字部分rnstd::cout<