GRETA 正则表达式库入门

发布于 2024-07-16 10:42:42 字数 1219 浏览 2 评论 0原文

我需要研究 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文