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
How do I prevent dead code elimination from removing an EM_JS function I define in a different compilation unit? I have mostly been using -sMAIN_MODULE=1 which prevents these errors but now I am trying to use -sMAIN_MODULE=2 or no dynamic linking builds and I am running into trouble with missing EM_JS symbols. I assume I am messing up something simple. How do I prevent these missing symbol errors? (See full example below).
How do I prevent dead code elimination from removing an EM_JS function I define in a different compilation unit? I have mostly been using
-sMAIN_MODULE=1
which prevents these errors but now I am trying to use-sMAIN_MODULE=2
or no dynamic linking builds and I am running into trouble with missing EM_JS symbols. I assume I am messing up something simple. How do I prevent these missing symbol errors? (See full example below).@antocuni
Version of emscripten/emsdk:
Failing command line in full:
main.c
hello.c
Compilation
Full link command and output with
-v
appendedThe text was updated successfully, but these errors were encountered: