Code Monkey home page Code Monkey logo

Comments (2)

mn1aC avatar mn1aC commented on June 26, 2024

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.

mn1aC avatar mn1aC commented on June 26, 2024

Seems like v8 is not included? How to solve this?

from node-cpp-modules.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.