Reputation: 31800
I'm trying to generate a JavaScript wrapper from a C++ library (so that C++ code can be used on the client side in a web browser), but I'm not sure which tools would be best for this purpose. Using Emscripten, is it possible to generate a JavaScript library from a C++ library, so that C++ functions can be called in JavaScript?
Upvotes: 7
Views: 6209
Reputation: 31800
Yes, it is possible to call compiled C++ functions from JavaScript, according to Emscripten's official documentation.
Upvotes: 6