Anderson Green
Anderson Green

Reputation: 31800

Is it possible to call C++ functions from JavaScript using Emscripten?

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

Answers (1)

Anderson Green
Anderson Green

Reputation: 31800

Yes, it is possible to call compiled C++ functions from JavaScript, according to Emscripten's official documentation.

Upvotes: 6

Related Questions