From 3735fc4a519da88453ec2ee654fc636c9c29e449 Mon Sep 17 00:00:00 2001 From: Dariyoush Shiri <44789851+d-shiri@users.noreply.github.com> Date: Tue, 3 Sep 2024 09:06:30 +0200 Subject: [PATCH] Updated Working on Windows (markdown) --- Working-on-Windows.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Working-on-Windows.md b/Working-on-Windows.md index 1b4b0c0..3c6f900 100644 --- a/Working-on-Windows.md +++ b/Working-on-Windows.md @@ -26,7 +26,13 @@ https://github.com/raylib-extras/raylib-quickstart It works with many compilers on windows, linux and Mac OS. Works with makefiles, visual studio, and VSCode. Simply follow the instructions in that link and you will be done, you do not need to use the rest of this document. +## Compile using Zig tools (cross platform) +This guide should work across all platforms, but the example is demonstrated on Windows. +1. Download and unzip Raylib to a directory, e.g., `C:\raylib`. +2. Place your C file in any desired location. +3. Compile the C (i.e., test.c) file using the following command: +`zig cc -o test.exe test.c -I"C:\raylib\include" "C:\raylib\lib\libraylib.a" -lopengl32 -lgdi32 -lwinmm` ## Other methods If you do not want to use the quiuckstart, you have several options