c++ - Compiling NodeJs Module against V8 -


i know has been asked couple of times recently, i'm getting linker error when trying compile simplest module example on ubuntu 13.04

inspired v8 developer website, downloaded, compiled , installed nodejs , v8 source.

i proceeded attempt compile simple v8 example:

g++ hello_world.cc -o hello_world -iinclude out/native/obj.target/tools/gyp/libv8_snapshot.a -lpthread

the linker errors getting are:

undefined reference `v8::handlescope::~handlescope()'

along others within v8 namespace.

does have clue library missing? have node.h , v8.h header files included in path. in advance help.

you should use node-gyp tool build native addons.

npm install -g node-gyp 

add binding.gyp file in addon's root directory. check here example https://github.com/tootallnate/node-gyp#the-bindinggyp-file

and -

node-gyp configure  node-gyp build 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -