You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This version download node.lib file for linking.But it was built with libc++(It has exports function like 'std::__1::shared_ptr').
So there is a link error in Windows.
Is there another version of node.lib file for windows?
test code
#include<tchar.h>
#include<node.h>namespacedemo {
using v8::Exception;
using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::Number;
using v8::Object;
using v8::String;
using v8::Value;
// This is the implementation of the "add" method// Input arguments are passed using the// const FunctionCallbackInfo<Value>& args structvoidMethod(const FunctionCallbackInfo<Value>& args) {
Isolate* isolate = args.GetIsolate();
v8::Local<v8::ArrayBuffer> jsobj = v8::ArrayBuffer::New(isolate, 10);
memset(jsobj->GetBackingStore()->Data(), 0, 10);//has linking error
args.GetReturnValue().Set(jsobj);
}
voidInitialize(Local<Object> exports) {
NODE_SET_METHOD(exports, "hello", Method);
}
NODE_MODULE(NODE_GYP_MODULE_NAME, Initialize)
} // namespace demo
The text was updated successfully, but these errors were encountered:
This version download node.lib file for linking.But it was built with libc++(It has exports function like 'std::__1::shared_ptr').
So there is a link error in Windows.
Is there another version of node.lib file for windows?
test code
The text was updated successfully, but these errors were encountered: