I'm using emscripten to compile c++ to WASM, but can only do this for one file at a time. I don't want to put my entire project and libraries in one file, but I haven't found any information on how to properly compile it.
Just put all source files in the emcc command line like this:
emcc src1.cpp src2.cpp src3.cpp
See reference here: https://kripken.github.io/emscripten-site/docs/tools_reference/emcc.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With