我需要在 Microsoft Research 提供的 GRETA 正则表达式库上工作。cl.exe
使用Visual Studio 2008 提供的示例程序时,我无法编译和运行示例程序。它给出了一些错误,例如:
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 吗?