Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/146.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 节点JS与C++;整合 我是Nojjs的新手,只是为Node JS和C++建立了一个集成环境。 我正在尝试enobayram使用SWIG提供的本文中提到的示例。 然而,当我试图使用节点gyp构建时,它抛出了很多错误_Javascript_C++_Node.js_Swig_Node Gyp - Fatal编程技术网

Javascript 节点JS与C++;整合 我是Nojjs的新手,只是为Node JS和C++建立了一个集成环境。 我正在尝试enobayram使用SWIG提供的本文中提到的示例。 然而,当我试图使用节点gyp构建时,它抛出了很多错误

Javascript 节点JS与C++;整合 我是Nojjs的新手,只是为Node JS和C++建立了一个集成环境。 我正在尝试enobayram使用SWIG提供的本文中提到的示例。 然而,当我试图使用节点gyp构建时,它抛出了很多错误,javascript,c++,node.js,swig,node-gyp,Javascript,C++,Node.js,Swig,Node Gyp,我的环境 操作系统:Windows 7 Professional x64 Python:2.7.11 节点:v4.4.1 节点Gyp:v3.3.1 MS VS:MS Visual Studio社区2015 D:\Example>node-gyp build gyp info it worked if it ends with ok gyp info using node-gyp@3.3.1 gyp info using node@4.4.1 | win32 | x64 gyp info s

我的环境

操作系统:Windows 7 Professional x64
Python:2.7.11
节点:v4.4.1
节点Gyp:v3.3.1
MS VS:MS Visual Studio社区2015

D:\Example>node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp@3.3.1
gyp info using node@4.4.1 | win32 | x64
gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  mylib_wrap.cxx
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(614): error C2061: syntax error: identifier 'uint16_t' [D:\Example\build\mylib.vcxproj]
  c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(642): note: see reference to class template instantiation 'v8::PersistentBase<T>' being compiled
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(620): error C3646: 'WrapperClassId': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(620): error C2059: syntax error: ')' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(620): error C2238: unexpected token(s) preceding ';' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1149): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1149): error C2143: syntax error: missing ',' before '*' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1154): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1154): error C2143: syntax error: missing ';' before '*' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1154): error C2238: unexpected token(s) preceding ';' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1228): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1228): error C2143: syntax error: missing ',' before '*' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1384): error C3646: 'CachedDataVersionTag': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1384): error C2059: syntax error: ')' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1384): error C2238: unexpected token(s) preceding ';' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1143): error C2789: 'v8::ScriptCompiler::CachedData::uint8_t': an object of const-qualified type must be initialized [D:\Example\build\mylib.vcxproj]
  c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1154): note: see declaration of 'v8::ScriptCompiler::CachedData::uint8_t'
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1143): error C2614: 'v8::ScriptCompiler::CachedData': illegal member initialization: 'data' is not a base or member [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(1536): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2003): error C2065: 'int64_t': undeclared identifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2003): error C2923: 'v8::Maybe': 'int64_t' is not a valid template type argument for parameter 'T' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2005): error C2065: 'uint32_t': undeclared identifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2005): error C2923: 'v8::Maybe': 'uint32_t' is not a valid template type argument for parameter 'T' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2007): error C2065: 'int32_t': undeclared identifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2007): error C2923: 'v8::Maybe': 'int32_t' is not a valid template type argument for parameter 'T' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2011): error C3646: 'IntegerValue': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2011): error C2059: syntax error: '(' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2011): error C2238: unexpected token(s) preceding ';' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2012): error C3646: 'Uint32Value': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2012): error C2059: syntax error: '(' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2012): error C2238: unexpected token(s) preceding ';' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2013): error C3646: 'Int32Value': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2013): error C2059: syntax error: '(' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2013): error C2238: unexpected token(s) preceding ';' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2151): error C2061: syntax error: identifier 'uint16_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2156): error C2061: syntax error: identifier 'uint8_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2222): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2222): error C2143: syntax error: missing ';' before '*' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2222): error C2433: 'v8::String::ExternalStringResource::uint16_t': 'virtual' not permitted on data declarations [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2222): error C2238: unexpected token(s) preceding ';' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2305): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2301): error C2143: syntax error: missing ',' before '*' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2310): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2310): error C2143: syntax error: missing ',' before '*' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2311): error C2556: 'v8::MaybeLocal<v8::String> v8::String::NewFromOneByte(v8::Isolate *,const int)': overloaded function differs only by return type from 'v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate *,const int)' [D:\Example\build\mylib.vcxproj]
  c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2305): note: see declaration of 'v8::String::NewFromOneByte'
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2311): error C2371: 'v8::String::NewFromOneByte': redefinition; different basic types [D:\Example\build\mylib.vcxproj]
  c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2305): note: see declaration of 'v8::String::NewFromOneByte'
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2318): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2314): error C2143: syntax error: missing ',' before '*' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2323): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2323): error C2143: syntax error: missing ',' before '*' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2324): error C2556: 'v8::MaybeLocal<v8::String> v8::String::NewFromTwoByte(v8::Isolate *,const int)': overloaded function differs only by return type from 'v8::Local<v8::String> v8::String::NewFromTwoByte(v8::Isolate *,const int)' [D:\Example\build\mylib.vcxproj]
  c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2318): note: see declaration of 'v8::String::NewFromTwoByte'
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2324): error C2371: 'v8::String::NewFromTwoByte': redefinition; different basic types [D:\Example\build\mylib.vcxproj]
  c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2318): note: see declaration of 'v8::String::NewFromTwoByte'
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2422): error C2143: syntax error: missing ';' before '*' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2422): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2422): error C2334: unexpected token(s) preceding '{'; skipping apparent function body [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2423): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2423): error C2143: syntax error: missing ';' before '*' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2423): error C2334: unexpected token(s) preceding '{'; skipping apparent function body [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2426): error C2143: syntax error: missing ';' before '*' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2426): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2426): error C2238: unexpected token(s) preceding ';' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2230): error C2789: 'v8::String::ExternalStringResource::uint16_t': an object of const-qualified type must be initialized [D:\Example\build\mylib.vcxproj]
  c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2222): note: see declaration of 'v8::String::ExternalStringResource::uint16_t'
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2499): error C2061: syntax error: identifier 'int32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2500): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2501): error C3646: 'Value': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2501): error C2059: syntax error: '(' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2501): error C2238: unexpected token(s) preceding ';' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2514): error C3646: 'Value': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2514): error C2059: syntax error: '(' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2514): error C2238: unexpected token(s) preceding ';' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2528): error C3646: 'Value': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2528): error C2059: syntax error: '(' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2528): error C2238: unexpected token(s) preceding ';' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2595): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2596): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2610): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2643): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2645): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2673): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2674): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2676): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2678): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2808): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2810): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2950): error C3646: 'Length': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2950): error C2059: syntax error: '(' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2950): error C2238: unexpected token(s) preceding ';' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2957): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(2959): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(3075): error C2061: syntax error: identifier 'int32_t' [D:\Example\build\mylib.vcxproj]
  c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(3098): note: see reference to class template instantiation 'v8::ReturnValue<T>' being compiled
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(3076): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(3076): error C2535: 'void v8::ReturnValue<T>::Set(void)': member function already defined or declared [D:\Example\build\mylib.vcxproj]
  c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(3075): note: see declaration of 'v8::ReturnValue<T>::Set'
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4178): error C2065: 'uint32_t': undeclared identifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4178): error C2146: syntax error: missing ')' before identifier 'index' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4187): error C2065: 'uint32_t': undeclared identifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4187): error C2146: syntax error: missing ')' before identifier 'index' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4197): error C2065: 'uint32_t': undeclared identifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4197): error C2146: syntax error: missing ')' before identifier 'index' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4207): error C2065: 'uint32_t': undeclared identifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4207): error C2146: syntax error: missing ')' before identifier 'index' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4246): error C2061: syntax error: identifier 'uint32_t' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4477): error C2061: syntax error: identifier 'IndexedPropertyGetterCallback' [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4494): error C3646: 'getter': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4494): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4495): error C3646: 'setter': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4495): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4496): error C3646: 'query': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4496): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4497): error C3646: 'deleter': unknown override specifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4497): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4477): error C2065: 'getter': undeclared identifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4487): error C2065: 'setter': undeclared identifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4488): error C2065: 'query': undeclared identifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4489): error C2065: 'deleter': undeclared identifier [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4492): error C2614: 'v8::IndexedPropertyHandlerConfiguration': illegal member initialization: 'getter' is not a base or member [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4492): error C2614: 'v8::IndexedPropertyHandlerConfiguration': illegal member initialization: 'setter' is not a base or member [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4492): error C2614: 'v8::IndexedPropertyHandlerConfiguration': illegal member initialization: 'query' is not a base or member [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4492): error C2614: 'v8::IndexedPropertyHandlerConfiguration': illegal member initialization: 'deleter' is not a base or member [D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node-gyp\4.4.1\include\node\v8.h(4492): fatal error C1003: error count exceeds 100; stopping compilation [D:\Example\build\mylib.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\rtv\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\rtv\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd D:\Example
gyp ERR! node -v v4.4.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok

D:\Example>
D:\Example>节点gyp构建
gyp信息如果以ok结尾,它就起作用了
gyp信息使用节点-gyp@3.3.1
gyp信息使用node@4.4.1| win32 | x64
gyp信息生成C:\Program Files(x86)\MSBuild\14.0\bin\MSBuild.exe
gyp信息生成参数['build/binding.sln',
gyp info spawn args'/clp:Verbosity=minimal',
gyp信息生成参数'/nologo',
gyp信息生成参数'/p:Configuration=Release;Platform=x64']
在此解决方案中一次构建一个项目。要启用并行生成,请添加“/m”开关。
mylib_wrap.cxx
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(614):错误C2061:语法错误:标识符“uint16\u t”[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(642):注意:请参阅正在编译的类模板实例化“v8::PersistentBase”的参考
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(620):错误C3646:“WrapperClassId”:未知重写说明符[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(620):错误C2059:语法错误:')'[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(620):错误C2238:在“;”之前的意外令牌[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1149):错误C4430:缺少类型说明符-假定为int。注意:C++不支持缺省INT[D:\Base\Bug \MyLIB .VCXPROJ]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1149):错误C2143:语法错误:缺少“,”在“*”之前[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1154):错误C4430:缺少类型说明符-假定为int。注意:C++不支持缺省INT[D:\Base\Bug \MyLIB .VCXPROJ]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1154):错误C2143:语法错误:缺少“;”在“*”之前[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1154):错误C2238:在“;”之前的意外令牌[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1228):错误C4430:缺少类型说明符-假定为int。注意:C++不支持缺省INT[D:\Base\Bug \MyLIB .VCXPROJ]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1228):错误C2143:语法错误:缺少“,”在“*”之前[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1384):错误C3646:'CachedDataVersionTag':未知重写说明符[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1384):错误C2059:语法错误:')'[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1384):错误C2238:在“;”之前的意外令牌[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1143):错误C2789:'v8::ScriptCompiler::CachedData::uint8\t':必须初始化const限定类型的对象[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1154):注意:请参见“v8::ScriptCompiler::CachedData::uint8”的声明
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1143):错误C2614:'v8::ScriptCompiler::CachedData':非法成员初始化:“data”不是基或成员[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(1536):错误C2061:语法错误:标识符“uint32\u t”[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2003):错误C2065:'int64\u t':未声明的标识符[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2003):错误C2923:'v8::Maybe':'int64\u t'不是参数't'的有效模板类型参数[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2005):错误C2065:'uint32\u t':未声明的标识符[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2005):错误C2923:'v8::Maybe':'uint32\u t'不是参数't'的有效模板类型参数[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2007):错误C2065:'int32\u t':未声明的标识符[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2007):错误C2923:'v8::Maybe':'int32_t'不是参数't'的有效模板类型参数[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2011):错误C3646:“IntegerValue”:未知重写说明符[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2011):错误C2059:语法错误:'('[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2011):错误C2238:在“;”之前的意外令牌[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2012):错误C3646:“uint32值”:未知重写说明符[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2012):错误C2059:语法错误:'('[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2012):错误C2238:在“;”之前的意外令牌[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2013):错误C3646:“Int32Value”:未知重写说明符[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2013):错误C2059:语法错误:'('[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2013):错误C2238:在“;”之前的意外令牌[D:\Example\build\mylib.vcxproj]
c:\users\rtv\.node gyp\4.4.1\include\node\v8.h(2151):错误C2061:语法错误:标识符“uint16\u t”[D: