I fixed it: I was compiling to a build/index file and I still had an old
JS glue code file so I didn't noticed that I wasn't compiling to JS. I
finally got it working!
Le 12/04/2025 à 21:44, Mibi88 a écrit :
When trying to define a function with EM_JS or trying to use
emscripten_run_script I'm getting
wasm streaming compile failed: LinkError: import object field
'emscripten_run_script' is not a Function
I tried adding -Wl,--whole-archive or -Wl,-u,emscripten_run_script. I
also tried -sEXPORTED_RUNTIME_METHODS=[\"emscripten_run_script\"], I'm
always getting the same error.
Any help is welcome!
Mibi88
--
You received this message because you are subscribed to the Google
Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/emscripten-discuss/0fc6e6cd-bcf4-459d-9061-f20543e06648n%40googlegroups.com
<https://groups.google.com/d/msgid/emscripten-discuss/0fc6e6cd-bcf4-459d-9061-f20543e06648n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/emscripten-discuss/57c1c475-913a-4bfb-b4b1-55ef99ebe3da%40gmail.com.