There is a node.js module written in C ++ (using N-api). This module uses dll. The build is successful, but when you call functions in the module that reference the dll, the program stops working. (dll lies in the folder with the project). When using a static library instead of a dll, there is no such problem. Is it possible in this case to make the module work with dll?
- Any error messages? What prevents the use of a static library? - Cerbo
- Definitely possible. - VTT
- No messages fall out, the program simply stops working, as I understood for the reason that it cannot find the implementation of the functions in the module. In this case, you need to get work through dll. Maybe somehow you need to specify the path to the dll? - Artyom L
- The shared library should be next to the '.node' file, i.e. with the file you get after compilation. - ReklatsMasters
|