Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c++

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?

like image 834
Anderson Green Avatar asked Feb 15 '13 18:02

Anderson Green


1 Answers

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

like image 177
Anderson Green Avatar answered Oct 14 '22 06:10

Anderson Green