Strange error in EMCC compiled code

16 views
Skip to first unread message

Stéphane Letz

unread,
Jul 9, 2019, 9:19:29 AM7/9/19
to emscripten-discuss
We get this error when using C++ code compiled with EMCC 1.38.31

ReferenceError: tempDouble is not defined
    at
Object.doStat (http://127.0.0.1:8000/libwasm-worklet-glue.js:4848:46)
    at ___syscall197
(http://127.0.0.1:8000/libwasm-worklet-glue.js:6494:23)
    at _fstat
(wasm-function[1849]:0xceadd)
    at _psf_is_pipe
(wasm-function[517]:0x4405d)
    at _psf_open_file
(wasm-function[71]:0x3343)
    at _sf_open
(wasm-function[69]:0x2f36)
    at __ZN16LibsndfileReader9checkFileERKNSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE
(wasm-function[1519]:0xc0e31)
    at __ZN15SoundfileReader9checkFileERKNSt3__26vectorINS0_12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS5_IS7_EEEERKS7_
(wasm-function[1361]:0xb8561)
    at __ZN15SoundfileReader10checkFilesERKNSt3__26vectorINS0_12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS5_IS7_EEEESB_
(wasm-function[1360]:0xb8412)
    at __ZN7SoundUI12addSoundfileEPKcS1_PP9Soundfile
(wasm-function[1356]:0xb7b0a)



I has to manually add those two lines in the JS library to make it work:

var tempDouble;
var tempI64;


Any idea? Thanks.

J Decker

unread,
Jul 9, 2019, 9:22:48 AM7/9/19
to emscripten-discuss

--
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 emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/db0abf1f-e408-4977-978a-529986acf4b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages