2

I'm trying to build a javascript app and i need to use a c++ library. Is there any way to include a c++ library in a javascript application?

1
  • 1
    Maybe write bindings for it? However that requires some work Commented Jan 14, 2018 at 21:26

2 Answers 2

4

Yes. You can utilize emscripten to convert C++ to JavaScript. You can alternatively

Sign up to request clarification or add additional context in comments.

1 Comment

In addition to these options, Node.js supports native addons in C++.
0

If you are working with Node.js and you library is provided as DLL, you could use node-ffi (Foreign Function Intergface). For other options check this post.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.