main() called twice. I have no idea... #23221
-
I am using Node 20.18.0_64 bit and emsdk 3.1.73 My linker arguments are the following
I had issues forwarding Simple program for reading command-line parameters
Super funny. If called from this script
I have to enter If called directly, i.e. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
By default emscripten will run main automatically, so you don't need to export If you want to disable this you can use the (seeminly badly names) |
Beta Was this translation helpful? Give feedback.
-
BTW you can use the short form for EXPORTED_RUNTIME_METHODS and EXPORTED_FUNCTIONS these days. e.g. |
Beta Was this translation helpful? Give feedback.
If you want to call main directly then you should build with
-sINVOKE_RUN=0
so that its not also called automatically. which is the default.