https://github.com/emscripten-core/emscripten/issues/8774

On Tue, Jul 9, 2019 at 6:19 AM Stéphane Letz <[email protected]> wrote:

> 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.
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/db0abf1f-e408-4977-978a-529986acf4b2%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/db0abf1f-e408-4977-978a-529986acf4b2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAA2GJqWKzgp33RifWSUgBpmn9%3Dmt8icMOPE%3D1Ov7KOcDXd11EA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to