gpt4 book ai didi

C: 带有 MinGW 的正则表达式库

转载 作者:太空狗 更新时间:2023-10-29 17:09:39 27 4
gpt4 key购买 nike

如何将 C 正则表达式安装到 MinGW 中?

我正在使用它的 GCC...我正在运行 Windows XP。我更喜欢更新的。

最佳答案

您有几个选择:

  • mingw-libgnurx来自 MinGW 的用户贡献区;来自自述文件:

    regex functionality from glibc 2.5 extracted into a separate library, for Win32

  • msys-regex ;从包说明:

    Current versions are derived from the GNULIB implementation of the regex module, but an older version of the runtime derived from the venerable GNU regex library, with a slightly different interface, is available for legacy MSYS applications

  • pcre可以用MinGW编译

如果你在 Fedora 上运行 MinGW 交叉编译器,libgnurx 和 pcre 在存储库中,ready to use with MinGW .

对于那些使用 C++ 的人来说,Boost RegEx(进入 TR1)和 QRegExp(来自 Qt)也是选项。

关于C: 带有 MinGW 的正则表达式库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3781211/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com