../src/hello.cc:6:30: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
Handle<Value> SayHello(const Arguments& args) {
^~~~~~~~~
v8::internal::Arguments
/Users/apple/.node-gyp/6.0.0/deps/v8/include/v8.h:145:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
../src/hello.cc:7:14: error: calling a protected constructor of class
'v8::HandleScope'
HandleScope scope;
^
/Users/apple/.node-gyp/6.0.0/deps/v8/include/v8.h:904:13: note: declared
protected here
V8_INLINE HandleScope() {}
^
../src/hello.cc:8:15: error: no member named 'Close' in 'v8::HandleScope'
return scope.Close(String::New("Hello World"));
../src/hello.cc:8:29: error: no member named 'New' in 'v8::String'
return scope.Close(String::New("Hello World"));
../src/hello.cc:14:25: error: cannot initialize a parameter of type
'v8::Isolate *' with an lvalue of type 'Handle<v8::Value> (const
v8::internal::Arguments &)'
FunctionTemplate::New(SayHello)->GetFunction()
^~~~~~~~
/Users/apple/.node-gyp/6.0.0/deps/v8/include/v8.h:4453:16: note: passing
argument to parameter 'isolate' here
Isolate* isolate, FunctionCallback callback = 0,
^
../src/hello.cc:13:11: error: no member named 'NewSymbol' in 'v8::String'
String::NewSymbol("sayHello"),
6 errors generated.
make: *** [Release/obj.target/hello/src/hello.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "build"
gyp ERR! cwd /Users/apple/Desktop/use-c
gyp ERR! node -v v6.0.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
环境mac
,centos
全部出现一样错误
ringa_lee