-
Example submited by: @ColleagueRiley
-
Compilation command (on linux):
$ cc main.c -lX11 -lXrandr -lm -o example.out
$ ./example.out
- Compilation command (on windows):
$ cc main.c -lgdi32 -lwinmm -o example.exe
$ example.exe
- Compilation command (on macOS):
$ cc main.c -lm -framework Foundation -framework AppKit -framework CoreVideo -o example.out
$ ./example.out