简体   繁体   English

Visual C ++ 2012和PCRE

[英]Visual C++ 2012 and PCRE

I'm new to C++ but I need to use PCRE library in my project. 我是C ++的新手,但我需要在我的项目中使用PCRE库。 I've already downloaded PCRE 8.20 for windows from this page . 我已经从这个页面下载了PCRE 8.20 for windows。 Now how can I tell Visual Studio where the library is so that #include <pcre.h> would work? 现在,我如何告诉Visual Studio库的位置,以便#include <pcre.h>可以工作?

I know that C++ already has <regex> library but ECMAScript regular expressions are too limiting for me (no possessive quantifiers for example). 我知道C ++已经有了<regex>库但ECMAScript正则表达式对我来说太有限了(例如没有占有量词)。

Did you add the pcre include path in the additional include folders list (idem for library path)? 您是否在附加的包含文件夹列表中添加了pcre include路径(idem用于库路径)? If not see here for additional include folders and here for additional library folders 如果没有在这里看到其他包含文件夹和这里的其他库文件夹

I took a look at the zip file. 我看了一下zip文件。 Copy all the content into your solution explorer, and then when adding pcre.h add it as inc/pcre.h That should work. 将所有内容复制到解决方案资源管理器中,然后在添加pcre.h时将pcre.h添加为inc/pcre.h这应该可行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM