Stream: general

Topic: Simple Visual Studio 2022 building and usage Windows 11


view this post on Zulip Lonnie TC (Nov 30 2025 at 14:49):

Hi All,

I am new to WAMR and working on a C++ project (Visual Studio 2022) and want to embed WAMR + WASI so that I can load WASM plugins to extend the capabilities of the base application.

Are there any tutorials on getting things set up since went through and compiled everything and created the iwasm as well as used the wasm-sdm clang to generate at simple hello.wasm but when I ran it I get problems:

Steps:


git clone --recursive https://github.com/bytecodealliance/wasm-micro-runtime.git

cd wasm-micro-runtime

cd product-mini\platforms\windows

mkdir build

cd build

cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release -DWAMR_BUILD_AOT=1 -DWAMR_BUILD_WASI=1 ..

C:\Development\WASM-Approach\testing\wasi-sdk\bin\clang --sysroot="C:\Development\WASM-Approach\testing\wasi-sdk\share\wasi-sysroot" hello.c -o hello.wasm


But does not work when run:
iwasm.exe hello.wasm

ERROR MESSAGE: WASM module load failed: zero byte expected. The module uses reference types feature which is disabled in the runtime.

Any help would be greatly appreciated.
Thanks and have a great day
Lonnie

WebAssembly Micro Runtime (WAMR). Contribute to bytecodealliance/wasm-micro-runtime development by creating an account on GitHub.

view this post on Zulip Notification Bot (Dec 01 2025 at 13:19):

This topic was moved to #wamr > Simple Visual Studio 2022 building and usage Windows 11 by Till Schneidereit.


Last updated: Dec 06 2025 at 05:03 UTC