Skip to content

Instantly share code, notes, and snippets.

@GeroZayas
Created January 2, 2026 09:00
Show Gist options
  • Select an option

  • Save GeroZayas/42b7e0057a5f3adf70c523a4d954d0ec to your computer and use it in GitHub Desktop.

Select an option

Save GeroZayas/42b7e0057a5f3adf70c523a4d954d0ec to your computer and use it in GitHub Desktop.
Compile RAYLIB App with Zig (C99)
zig cc -std=c99 main.c \
-lraylib -lGL -lm -lpthread -ldl -lrt -lX11 \
-o app
@GeroZayas

Copy link
Copy Markdown
Author

-o app

Name the output executable app.

Without -o, Zig would pick a default name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment