Tag: unresolved external

C ++ / Node.js:binding.gyp库失败

我在Visual Studio 2015中使用EnumProcessModules在Windows 7上创build了一个C ++程序。 当我在VS2015编译它成功。 现在,我在Node.js中创build了一个包含上面代码(EnumProcessModules)的C ++插件。 当我从命令行编译它(通过运行node-gyp构build ),我得到以下错误: LINK : fatal error LNK1181: cannot open input file 'psapi.dll' [C:\Users\Yoni\W ebstormProjects\my_prog\build\getProcesses.vcxproj] psapi.dll存在于 C:\Users\Yoni\WebstormProjects\my_prog\ 我把它从C:\Windows\System32\ 这是我的binding.gyp代码: { "targets": [ { "target_name": "getProcesses", "sources": [ "psInfo.cc", "json.hpp" ], "libraries": [ "psapi.dll" ] } ] } 如何解决这个问题? Thx的帮助。