Skip to content

Node.js binding does not compile #1

@TimSC

Description

@TimSC

Scanning dependencies of target cppgtm
[ 5%] Building CXX object Source/CMakeFiles/cppgtm.dir/GTM.cpp.o
cc1plus: warning: /usr/lib/libv8.so: not a directory
[ 11%] Linking CXX static library ../lib/libcppgtm.a
[ 11%] Built target cppgtm
Scanning dependencies of target nodegtm
[ 17%] Building CXX object Source/CMakeFiles/nodegtm.dir/NodeAddon.cpp.o
cc1plus: warning: /usr/lib/libv8.so: not a directory
In file included from /home/tim/dev/gtm-bindings/Source/NodeGTM.h:23:0,
from /home/tim/dev/gtm-bindings/Source/NodeAddon.cpp:19:
/usr/include/nodejs/src/node.h:238:33: error: ‘v8::FunctionCallback’ has not been declared
v8::FunctionCallback callback) {
^
/usr/include/nodejs/src/node.h: In function ‘void node::NODE_SET_METHOD(const TypeName&, const char_, int)’:
/usr/include/nodejs/src/node.h:242:73: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Isolate_&, int&)’
callback);
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from /home/tim/dev/gtm-bindings/Source/NodeGTM.h:23,
from /home/tim/dev/gtm-bindings/Source/NodeAddon.cpp:19:
/usr/include/v8.h:2255:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::InvocationCallback, v8::Handlev8::Value, v8::Handlev8::Signature)
static Local New(
^
/usr/include/v8.h:2255:34: note: no known conversion for argument 1 from ‘v8::Isolate_’ to ‘v8::InvocationCallback {aka v8::Handlev8::Value (_)(const v8::Arguments&)}’

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions