2013-10-18 44 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是否足夠?

回答