Stream: wasmtime

Topic: Windows C/gcc assert failure


view this post on Zulip Doug McKay (Dec 27 2022 at 19:26):

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.

Contribute to Azecy/hello_wasmtime_c development by creating an account on GitHub.

view this post on Zulip Robin Brown (Jan 10 2023 at 18:28):

We've always compiled our C using the version of clang in the wasi-sdk

WASI-enabled WebAssembly C/C++ toolchain. Contribute to WebAssembly/wasi-sdk development by creating an account on GitHub.

Last updated: Nov 22 2024 at 17:03 UTC