Closed zxyao145 closed 1 year ago
I got the reason, the linker does not know what the corresponding Module instance for go-wasm-module
is. It can be defined through the following code:
linker.DefineModule(store, goWasmModule);
or
linker.DefineInstance(store, "go-wasm-module", goWasmIns);
Hi, I am trying to interact with multiple modules using wasmtime. I exported a func
main.add
in the modulego-wasm-module. wasm
and imported it inWasmLib.wasm
. However, when executinginker.Instantiate (store, wasmLibModule)
, it failed and resulted in the following exception:How can I solve it? And here are my core sample code and some key outputs: