GRETA 正则表达式库入门
我需要研究 Microsoft Research 提供的 GRETA 正则表达式库。 当使用 Visual Studio 2008 提供的 cl.exe 时,我无法编译和运行示例程序。它给出了一些错误,例如:
D:\greta\greta-2.6.4>cl /EHsc num_match.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
num_match.cpp
d:\greta\greta-2.6.4\restack.h(355) : warning C4346: 'regex::hetero_stack<Alignm
entT,RuntimeTypeCheckT,AssumePodT,DynamicBlockSizeT,StaticBlockSizeT>::stack_nod
e::header' : dependent name is not a type
prefix with 'typename' to indicate a type
d:\greta\greta-2.6.4\restack.h(854) : see reference to class template in
stantiation 'regex::hetero_stack<AlignmentT,RuntimeTypeCheckT,AssumePodT,Dynamic
BlockSizeT,StaticBlockSizeT>' being compiled
d:\greta\greta-2.6.4\restack.h(355) : error C2923: 'regex::hetero_stack<Alignmen
tT,RuntimeTypeCheckT,AssumePodT,DynamicBlockSizeT,StaticBlockSizeT>::aligned_siz
eof' : 'regex::hetero_stack<AlignmentT,RuntimeTypeCheckT,AssumePodT,DynamicBlock
SizeT,StaticBlockSizeT>::stack_node::header'
它不是参数“T”的有效模板类型参数。
有人可以帮助我开始使用 GRETA 吗?
I'm required to work on GRETA Regular Expression Library, provided by Microsoft Research. I was unable to compile and run the sample program when used cl.exe
provided with Visual Studio 2008. It gave some errors like:
D:\greta\greta-2.6.4>cl /EHsc num_match.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
num_match.cpp
d:\greta\greta-2.6.4\restack.h(355) : warning C4346: 'regex::hetero_stack<Alignm
entT,RuntimeTypeCheckT,AssumePodT,DynamicBlockSizeT,StaticBlockSizeT>::stack_nod
e::header' : dependent name is not a type
prefix with 'typename' to indicate a type
d:\greta\greta-2.6.4\restack.h(854) : see reference to class template in
stantiation 'regex::hetero_stack<AlignmentT,RuntimeTypeCheckT,AssumePodT,Dynamic
BlockSizeT,StaticBlockSizeT>' being compiled
d:\greta\greta-2.6.4\restack.h(355) : error C2923: 'regex::hetero_stack<Alignmen
tT,RuntimeTypeCheckT,AssumePodT,DynamicBlockSizeT,StaticBlockSizeT>::aligned_siz
eof' : 'regex::hetero_stack<AlignmentT,RuntimeTypeCheckT,AssumePodT,DynamicBlock
SizeT,StaticBlockSizeT>::stack_node::header'
It is not a valid template type argument for parameter 'T'.
Can anybody help me to get started with GRETA?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论