Comments (2)
When I do node-gyp build I get:
CXX(target) Release/obj.target/node-cpphello/cpphello.o
../cpphello.cpp:7:32: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle foo(const Arguments& args)
^~~~~~~~~
v8::internal::Arguments
/Users/sven/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../cpphello.cpp:9:18: error: no member named 'New' in 'v8::String'
return String::New("Hello World");
~~~~~~~~^
../cpphello.cpp:14:3: error: no matching function for call to 'NODE_SET_METHOD'
NODE_SET_METHOD(target, "foo", foo);
^~~~~~~~~~~~~~~
/Users/sven/.node-gyp/0.12.0/src/node.h:240:25: note: expanded from macro 'NODE_SET_METHOD'
#define NODE_SET_METHOD node::NODE_SET_METHOD
^~~~~~~~~~~~~~~~~~~~~
/Users/sven/.node-gyp/0.12.0/src/node.h:228:13: note: candidate function [with TypeName = v8::Handlev8::Object] not viable: no known conversion from 'Handlev8::Value (const v8::internal::Arguments &)'
to 'v8::FunctionCallback' (aka 'void (*)(const FunctionCallbackInfov8::Value &)') for 3rd argument
inline void NODE_SET_METHOD(const TypeName& recv,
^
3 errors generated.
from node-cpp-modules.
Seems like v8 is not included? How to solve this?
from node-cpp-modules.
Related Issues (9)
- Module template
- API Breaking change node v0.12+
- why no v8 code in AsyncWork HOT 1
- 06_objects - assert when calling modulename.MyObject HOT 2
- question: what's the different with eio_req and uv_work_t ? HOT 2
- baton.request? HOT 4
- scope.Close() in AsyncAfter HOT 2
- Use v8::Signature, and other problems with Object example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-cpp-modules.