Open EugeneChung opened 5 years ago
@EugeneChung I know this is a late response, but I can't make any changes to the repo since the book was released. The book was updated to indicate the specific version of Emscripten I was using (prior to the breaking changes). Thanks for providing directions on how to get the code working with the newer version. I'm going to leave this issue open for reference.
As #1 indicated, the examples of the master branch are not working with the emscripten 1.38.0 above. (For me, 1.38.30)
I made them work like below;
emcc .\without-glue.c -Os -s WASM=1 -s SIDE_MODULE=1 -s BINARYEN_ASYNC_COMPILATION=0 -s EXPORTED_FUNCTIONS='["_init", "_setIsRunning", "_getIsRunning", "_updateRectLocation", "_moveRect"]' -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' -o without-glue.wasm