go-v8
go-v8 copied to clipboard
Compilation problem
I'm getting following errors on compilation:
g++ `go env GOGCCFLAGS` -I. -c v8wrap.cc -lv8
v8wrap.cc: In function ‘std::string to_json(v8::Handle<v8::Value>)’:
v8wrap.cc:22:19: error: no matching function for call to ‘v8::HandleScope::HandleScope()’
v8::HandleScope scope;
^
v8wrap.cc:22:19: note: candidates are:
In file included from v8wrap.cc:1:0:
/usr/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
HandleScope(const HandleScope&);
^
/usr/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided
/usr/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
HandleScope(Isolate* isolate);
^
[...] loads of other errors [...]
v8wrap.cc:200:19: error: no matching function for call to ‘v8::HandleScope::HandleScope()’
v8::HandleScope scope;
^
v8wrap.cc:200:19: note: candidates are:
In file included from v8wrap.cc:1:0:
/usr/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
HandleScope(const HandleScope&);
^
/usr/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided
/usr/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
HandleScope(Isolate* isolate);
^
/usr/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided
Makefile:6: recipe for target 'libv8wrap.a' failed
make: *** [libv8wrap.a] Error 1
Is it possible that the package does not compile with newer versions of v8? I'm using version 3.21.18.
Additionally: there is no libv8wrap.so target in the Makefile, it's called libv8wrap.a.
I had the same problem with v8 3.21.17, but got it woking with v8 3.18.5.