Zhangyx24 opened issue #4417:
The wat is :
The command is
wasmtime run test.wat
The output is :
Caused by:
0: failed to instantiate "test.wasm"
1: unknown import:env::puts
has not been defined
sunfishcode commented on issue #4417:
puts
as a host function appears to be a wamr-specific feature. If you compile your program with wasi-sdk, it'll link in aputs
function from wasi-libc, which will run in all WASI engines.
Zhangyx24 commented on issue #4417:
Thanks a lot!
Zhangyx24 closed issue #4417:
The wat is :
The command is
wasmtime run test.wat
The output is :
Caused by:
0: failed to instantiate "test.wasm"
1: unknown import:env::puts
has not been defined
Last updated: Nov 22 2024 at 16:03 UTC