Hi, I am having trouble running the Hello World C example in the wasmtime.dev docs using gcc on windows. There is an assert failure caused by fread (line 70), and I can't tell why it would be going wrong. I copy/pasted the hello.wat and hello.c files from the example. I am building it with this command: "gcc hello.c -o hello.exe -Iinclude -Llib -lws2_32 -ladvapi32 -luserenv -lntdll -lshell32 -lole32 -lbcrypt -lwasmtime". The whole project is on github here: https://github.com/Azecy/hello_wasmtime_c. If anyone could take a look and try to find anything obviously wrong with it, I would appreciate it. Thanks.
We've always compiled our C using the version of clang in the wasi-sdk
Last updated: Dec 23 2024 at 13:07 UTC