如何把GRETA加入到自己的项目中
2008-09-19 13:18
204 查看
如何把GRETA加入到自己的项目中收藏
Greta在http://research.microsoft.com/projects/greta/可以下载,许多介绍都是关于lib的,不推荐直接加入到项目
加入到VC7.1中,也许会碰到一些问题,不要理会它,也别企图修改Greta的代码 :)
预编译头
不需要 #include "stdafx.h" 到 regexpr2.cpp 和syntax2.cpp
选择项目 - 属性 - C/C++ - 预编译头 - 选择 不使用预编译头
LNK2019错误
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
lsp error LNK2019: 无法解析的外部符号 __CrtDbgReport ,该符号在函数 "protected: bool __thiscall regex::basic_rpattern_base<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator,class regex::perl_syntax<char> >::_find_next(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::iterator &,class regex::detail::match_group_base<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator> *,class regex::perl_syntax<char> &,class std::vector<class regex::detail::match_group_base<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator> *,class std::allocator<class regex::detail::match_group_base<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator> *> > &)" (?_find_next@?$basic_rpattern_base@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$perl_syntax@D@regex@@@regex@@IAE_NAAViterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV?$match_group_base@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@detail@2@AAV?$perl_syntax@D@2@AAV?$vector@PAV?$match_group_base@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@detail@regex@@V?$allocator@PAV?$match_group_base@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@detail@regex@@@std@@@5@@Z) 中被引用
照样修改项目属性:
项目 -- 属性 -- C/C++ -- 代码生成 -- 运行时库 选择 多线程调试 DLL (/MDd)
选择/MDd就不会错了:)
如何下载
Greta的下载地址:
GRETA 2.6.4 for VC7/VC7.1
http://research.microsoft.com/downloads/download.asp?FUID={BD99F343-4FF4-4041-8293-34C054EFE749}
Download GRETA 2.6.4 for VC6
http://research.microsoft.com/downloads/download.asp?FUID={DFDF2354-5BF5-495B-B7CF-1396CC975EE8}
VC++ PowerTools
http://www.gotdotnet.com/team/cplusplus/powertools/powertools.zip
VC++ PowerTools包含greta源代码,但其包包含了其它东西,过大,如果您只是下载Greta的话,就别下这个了:)
还有问题?
如果还有啥问题,可以先问我,再去问Ashish Aggarwal和Chris Quirk :)
新一篇: Winsock 2 SPI 的技术特点 |
function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}最近在开发关键字过滤的程序,需要用到正则表达式,选择了GRETA。Greta在http://research.microsoft.com/projects/greta/可以下载,许多介绍都是关于lib的,不推荐直接加入到项目
加入到VC7.1中,也许会碰到一些问题,不要理会它,也别企图修改Greta的代码 :)
预编译头
不需要 #include "stdafx.h" 到 regexpr2.cpp 和syntax2.cpp
选择项目 - 属性 - C/C++ - 预编译头 - 选择 不使用预编译头
LNK2019错误
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
lsp error LNK2019: 无法解析的外部符号 __CrtDbgReport ,该符号在函数 "protected: bool __thiscall regex::basic_rpattern_base<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator,class regex::perl_syntax<char> >::_find_next(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::iterator &,class regex::detail::match_group_base<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator> *,class regex::perl_syntax<char> &,class std::vector<class regex::detail::match_group_base<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator> *,class std::allocator<class regex::detail::match_group_base<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator> *> > &)" (?_find_next@?$basic_rpattern_base@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$perl_syntax@D@regex@@@regex@@IAE_NAAViterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV?$match_group_base@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@detail@2@AAV?$perl_syntax@D@2@AAV?$vector@PAV?$match_group_base@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@detail@regex@@V?$allocator@PAV?$match_group_base@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@detail@regex@@@std@@@5@@Z) 中被引用
照样修改项目属性:
项目 -- 属性 -- C/C++ -- 代码生成 -- 运行时库 选择 多线程调试 DLL (/MDd)
选择/MDd就不会错了:)
如何下载
Greta的下载地址:
GRETA 2.6.4 for VC7/VC7.1
http://research.microsoft.com/downloads/download.asp?FUID={BD99F343-4FF4-4041-8293-34C054EFE749}
Download GRETA 2.6.4 for VC6
http://research.microsoft.com/downloads/download.asp?FUID={DFDF2354-5BF5-495B-B7CF-1396CC975EE8}
VC++ PowerTools
http://www.gotdotnet.com/team/cplusplus/powertools/powertools.zip
VC++ PowerTools包含greta源代码,但其包包含了其它东西,过大,如果您只是下载Greta的话,就别下这个了:)
还有问题?
如果还有啥问题,可以先问我,再去问Ashish Aggarwal和Chris Quirk :)
相关文章推荐
- 如何在编译cocos2d项目加入自己的脚本
- 如何加入开源项目
- iOS中,如何在github上上传自己的项目
- 在自己的SSH项目中加入WebService
- 如何将本地已有项目加入git管理
- 面试中如何谈自己做过的项目
- 如何选择一个适合自己的开源项目来阅读
- 如何介绍自己做过的运维项目
- 如何在自己工程项目中使用TouchJSON框架
- 如何加入开源项目
- 从程序员到项目经理(13):如何管理自己的时间(下)
- 如何在微博侧栏中加入自己的微博[js]
- github 之 如何在项目中加入专业的文档说明
- 如何往自己编译的opencore里面添加自己的项目。
- 如何介绍自己的项目
- 如何管理自己github上的项目
- java eclipse如何把项目路径改成自己本地tomcat的路径
- 从程序员到项目经理(12):如何管理自己的时间(上)
- 如何选择适合自己项目的编程语言
- 如何修改TOMCAT的默认主页为你自己项目的主页