2013-10-18 73 views
0

我正尝试在本地C++ nodejs模块中使用PCRE库。 我在CPP文件中添加#include "pcre\pcrecpp.h",但我越来越在本地节点模块中使用PCRE库

e:\nativenode\pcre\pcrecpp.h(334): fatal error C1083: Cannot open include file: 
'pcre.h': No such file or directory [E:\nativenode\build\wikiparser.vcxproj] 
gyp ERR! build error 
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe 
` failed with exit code: 1 
gyp ERR! stack  at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\ 
npm\node_modules\node-gyp\lib\build.js:267:23) 
gyp ERR! stack  at ChildProcess.EventEmitter.emit (events.js:98:17) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (child_process.js:789: 
12) 
gyp ERR! System Windows_NT 6.1.7601 
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu 
les\\node-gyp\\bin\\node-gyp.js" "rebuild" 
gyp ERR! cwd E:\nativenode 
gyp ERR! node -v v0.10.12 
gyp ERR! node-gyp -v v0.10.0 
gyp ERR! not ok 
npm ERR! weird error 1 
npm ERR! not ok code 0 

所以我认为pcre.h文件只是失踪,我在PCRE DIR去,并更名pcre.h.generic到pcre.h(所以该文件现在存在),但我得到相同的错误。 我的文件夹看起来像这样

enter image description here

我怎样才能得到它运行?我需要链接在某处的lib或只包括pcrecpp.h是否足够?

回答