Closed Triangle345 closed 1 year ago
i think you are missing glfw3.lib
i think you are missing glfw3.lib
Thank you for the advice! I simply included the glfw3.lib from the vs2022 binary and was able to link. Obviously a few more errors showed up but I was able to remedy them like so:
~/Downloads\\zig-windows-x86_64-0.12.0-dev.167+dd6a9caea\zig.exe build-exe .\hello.zig -lraylib -Lzig-out/lib -Izig-out/include -Izig-out/include/GLFW -lc -lglfw3 -lgdi32 -lwinmm
Zig Version
0.12.0-dev.167+dd6a9caea
Steps to Reproduce and Observed Behavior
I'm going to list the steps that I took to get to where I am. There are probably less cumbersome ways, but since I'm solely dealing with raylib this is my process: 1.) download raylib 2.) zig build to produce raylib.lib inside zig-out/lib 3.) download glfw windows binaries from glfw website ( i used mingw64) 4.) run the below commands
As you can see below, it fails to even find the glfw3 library even though I have the correct lib path set up with the correct shared lib.
This seems like a bug but since I'm fairly new to zig, it could be user error on my part :(.
Here is my hello.zig sample file:
Expected Behavior
I expected my hello.zig program to compile and/or give errors not related to glfw