Skip to content

Instantly share code, notes, and snippets.

@nornagon
Created September 21, 2018 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nornagon/9113b2a4e8b33e763704c79976a355e1 to your computer and use it in GitHub Desktop.
Save nornagon/9113b2a4e8b33e763704c79976a355e1 to your computer and use it in GitHub Desktop.
$ zig build-exe \
-isystem glfw/include \
--library glfw/build/src/libglfw3.a \
-framework CoreGraphics \
-framework CoreFoundation \
-framework AppKit \
main.zig
const glfw = @cImport({
@cInclude("GLFW/glfw3.h");
});
pub fn main() void {
const x = glfw.glfwInit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment