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:

QNX: Running a function at specific interval using timer interrupt

#include <iostream> #include <csignal> #include <ctime> #include <cerrno> #include <cstring> #include <unis...