Sunday, March 23, 2025

Compiling hello win32 C application in Zig

Compiling hello win32 C application in Zig

This is very similar to compiling C source in Zig but this time using win32 API. Copy and save this to a file, say, in C:\prj\hello-win\hello-win32.c
To compile using Zig, do:
PS C:\prj\hello-win> zig cc .\hello-win32.c -o hello-win32.exe

No comments:

Install Winget on Windows 2022 or Windows 10 LSTC

Install Winget on Windows 2022 or Windows 10 LTSC Install Pre-reqs Install Microsoft.UI.Xaml/2.8.6 Navigate to https://www.nuget.org/pa...