I was trying to use the
libv8-184.108.40.206 package in my c++ script. The package is installed in
/usr/lib/ as supposed but if I try to compile my script using
g++ script.cpp -Iv8 command, nothing happens.
What should be in the script's header so I could use the library? This is what I've tried:
#include <v8> #include <libv8> #include <libv8.so> #include <v8.so>
On the next line was
using namespace v8 command.
When I do this,
g++ returns an error:
index.cpp:1:20: fatal error: libv8.so: No such file or directory #include <libv8.so> ^ compilation terminated.
Or something like that.
I have even tried to compile it without the header but
g++ didn't like it.
Is it possible to use the library this way? And how? Thank you, m93a
libv8-3.14-dev, I've tried both) compiler throws:
index.cpp: In function ‘int main(int, char**)’: index.cpp:10:35: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’ HandleScope handle_scope(isolate); ^ index.cpp:10:35: note: candidates are: In file included from index.cpp:1:0: /usr/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) HandleScope(const HandleScope&); ^
And so on... (it's too long and still saying something's not found)
g++ main.cpp -lv8 command.