You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use SIDE_MODULE you are opting int emscripten's dynamic linking system, which means you need to build a MAIN_MODULE and use the emscripten-generated js file for the that main module to then load the side module.
If you just want to build a standalone wasm module and don't want use emscripten generated JS then the option you probably want is -sSTANDALONE_WASM (However in this you don't even need that since it is the default setting when build to and output file with the .wasm extension). See https://v8.dev/blog/emscripten-standalone-wasm for more
My code:
Connect with:
I use the command:
emcc state.cpp -s SIDE_MODULE=1 -O1 -o state.wasm
And I get error Import #2 module="GOT.mem": module is not an object or function
When I use the command
emcc state.cpp -o state.js
And when I delete the state.js file and use only state.wasm, everything works fine
The text was updated successfully, but these errors were encountered: