-
-
Save nornagon/9113b2a4e8b33e763704c79976a355e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ zig build-exe \ | |
-isystem glfw/include \ | |
--library glfw/build/src/libglfw3.a \ | |
-framework CoreGraphics \ | |
-framework CoreFoundation \ | |
-framework AppKit \ | |
main.zig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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