[英]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正则表达式对我来说太有限了(例如没有占有量词)。
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.