(index):30 Uncaught (in promise) LinkError: WebAssembly.Instance(): Import #0 module="env" function="__memory_base" error: global import must be a number or WebAssembly.Global object
这个是报错信息
emcc math.c -Os -s WASM=1 -s SIDE_MODULE=1 -o math.wasm 这是我运行的命令
(index):30 Uncaught (in promise) LinkError: WebAssembly.Instance(): Import #0 module="env" function="__memory_base" error: global import must be a number or WebAssembly.Global object 这个是报错信息 emcc math.c -Os -s WASM=1 -s SIDE_MODULE=1 -o math.wasm 这是我运行的命令
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.38.36 clang version 6.0.1 (Cswircachegitchromium.googlesource.com-external-github.com-emscripten--core-emscripten--fastcomp--clang 98df4be387dde3e3918fa5bbb5fc43e1a0e1daac) (Cswircachegitchromium.googlesource.com-external-github.com-emscripten--core-emscripten--fastcomp 1b4148f39a69c7fc62edadd85e4122b68694dfb7) (emscripten 1.38.31 : 1.38.31) Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: D:\emsdk\fastcomp\fastcomp\bin shared:INFO: (Emscripten: Running sanity checks) 这个是我的emcc 版本
求大神指点