Closed jonyrock closed 4 years ago
We use zeromq 4.6.0
Node 10 support was introduced in this PR https://github.com/zeromq/zeromq.js/pull/262
It's released in 5.0.0
There are commits with Node 11 support but I'm not sure it's already published
P.S. the latest zeromq release was published about a year ago (Oct 18, 2018)
Same thing with node v13.5.0
../binding.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE zmq::Socket::Sendv(Nan::NAN_METHOD_ARGS_TYPE)’:
../binding.cc:1295:39: error: no matching function for call to ‘v8::Array::Get(uint32_t&)’
Local<Object> buf = batch->Get(i).As<Object>();
^
In file included from ../binding.cc:24:0:
/home/corp/.cache/node-gyp/13.5.0/include/node/v8.h:3594:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
^~~
/home/corp/.cache/node-gyp/13.5.0/include/node/v8.h:3594:43: note: candidate expects 2 arguments, 1 provided
/home/corp/.cache/node-gyp/13.5.0/include/node/v8.h:3597:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
^~~
/home/corp/.cache/node-gyp/13.5.0/include/node/v8.h:3597:43: note: candidate expects 2 arguments, 1 provided
../binding.cc:1295:50: error: expected primary-expression before ‘>’ token
Local<Object> buf = batch->Get(i).As<Object>();
^
../binding.cc:1295:52: error: expected primary-expression before ‘)’ token
Local<Object> buf = batch->Get(i).As<Object>();
^
../binding.cc:1296:48: error: no matching function for call to ‘v8::Array::Get(uint32_t)’
Local<Number> flagsObj = batch->Get(i + 1).As<Number>();
It is a piece of log during build: