emcc compile and link options used by Qt Creator

113 views
Skip to first unread message

CodeFan

unread,
Jun 10, 2022, 4:05:43 PM6/10/22
to emscripten-discuss
I can build and run simple c++ applications using emcc on the linux (bash) command line.  I can run those in a browser.  I do have to either set DISABLE_EXCEPTION_CATCHING=0 on the command line or in the settings.js.  Simple enough.

But, my builds from within Qt Creator fail with undefined symbols like:
__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv

I notice that the Qt Creator initiated builds have DISABLE_EXCEPTION_CHECKING=1, even if I have it set to 0 in the settings.js.  I suspect this to be the cause of the undefined symbols. Does anyone know how to change the options Qt is specifying for emcc?  I have tried setting them in the CMakeLists.txt, but that still doesn't change what ends up being used.
Reply all
Reply to author
Forward
0 new messages