go-v8 icon indicating copy to clipboard operation
go-v8 copied to clipboard

Compilation problem

Open nd2s opened this issue 11 years ago • 1 comments

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.

nd2s avatar Dec 22 '13 13:12 nd2s

I had the same problem with v8 3.21.17, but got it woking with v8 3.18.5.

ianic avatar Jan 25 '14 11:01 ianic