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