Closed amlwwalker closed 9 months ago
Try to rename Log
to HostLog
or something to not interfere with log
from libc (this worked with older versions of tinygo
because of bug, that many other packages start to rely on it at some point).
Also please take a look at related issues:
nice thanks. Solved!
Hi, I have
and on compilation with
and generating my plugin with
I then have in my plugin
where
SendMessage
is one of the plugin functions that the host calls, I then want to call the logger on the host as you can see.In my host I have
tinygo build -o pkg/plugins/examples/basic.wasm -scheduler=none -target=wasi --no-debug pkg/plugins/examples/basic.go tinygo:wasm-ld: warning: function signature mismatch: log
its a warning, however when i run the host I get