N-API include an .so or dll
N-API include an .so or dll
我正在使用电子开发一个应用程序。
我已经设置了一个使用 c++ 代码的插件,并使用 NAPI 将其转换为 nodejs 代码。
现在我想包含一个外部 .so 库(带有 .h 文件(,但找不到任何成功的文档。
我不断收到错误:未定义的符号:Some_Function_Name
您可以在binding.gyp
中指定要链接的库,详细信息在 Node-gyp/C++ 导入共享库 (.so( 和如何构建 nodejs C++插件,具体取决于具有相对位置的共享库。 使用 NAPI 时,您使用node-gyp
作为工具链进行自动编译,是 NAPI 的依赖项
相关文章:
- 挂起和取消挂起一个文件DLL
- std::threads可以从Windows DLL中的全局变量创建/销毁吗?
- 导入库可以跨dll版本工作吗
- 从C++dll访问C#中的一行主要参数
- 链接到自行创建的dll失败
- 瓦尔格林德:数学函数"Conditional jump or move depends on uninitialised value(s)"
- 为什么使用 P/Invoke 调用 dll 时,某些计算机中的 LoadLibrary 失败?
- 在调用FreeLibrary后,释放动态链接到具有相同版本的CRT堆的DLL的内存
- 如何指定我希望我的LIB链接到的DLL文件?-Visual Studio 2019
- C++核心准则 C35 对于接口类"A base class destructor should be either public and virtual, or protected and nonv
- 如何将图像传输到c++(dll)中的缓冲区,然后在c#的缓冲区中读/写
- 使用模板进行堆栈实现; "name followed by :: must be a class or namespace"
- C++:将外部库链接到dll库
- 在 Windows 上,是否可以让 dll 在不使用 PATH 环境变量的情况下在另一个文件夹中查找依赖项?
- 不同的Visual Studio版本中缺少.dll
- 从DLL中删除类的实例
- N-API include an .so or dll
- C++ DLL 到 C# 错误:"Attempted to read or write protected memory. This is often an indication that other
- LNK1104.dll链接到 Visual Studio "invalid or corrupt file" 中的测试应用程序时出错
- 等效于 VB DLL 函数声明的 C# 返回并返回'Attempted to read or write protected memory'错误