Reputation: 127
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.
Upvotes: 3
Views: 4454
Reputation: 961
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
Upvotes: 6