Uncaught 38782240 - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.
But I don’t know what to do with it. It seems this flag is for when you are compiling using emcc, not make.
Do I have to do something like this with it? (this fails on the first include in the file)
you can add flags that should be passed to the compiler in the config.make file of your project, look for PROJECT_CFLAGS, uncomment it and add add something like:
Thanks. I followed your instructions then saved config.make, ran emmake make and emrun as before.
It still gives me the same console error:
Uncaught 38782240 - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.
Emscripten people helped me out here. It seems that the flag needs to be set at the final step of compilation, when the .html file is generated. The PROJECT_CFLAGS are only using the flag when .cpp files are compiled.
I couldn’t figure out how to automate this using config.make, but I was able to get it working by repeating the .html compilation step after emmake make finishes, and adding on the flag I want.