Tested with the following versions:
Operating System: Windows 10 19042
So, I just downloaded Zig, and I have this Raylib project.
This is what my project looks like:
main.c
main.h
include\
raygui.h
raylib.h
ricons.h
lib\
libraylib.a
libraylibdll.a
raylib.dll
When I run this with GCC it works:
gcc main.c -Iinclude/ -Llib/ -lraylib -lgdi32 -limm32 -lwinmm -o main.exe
When I run this with Zig, it does not:
zig cc main.c -Iinclude/ -Llib/ -lraylib -lgdi32 -limm32 -lwinmm -o main.exe
I tried adding the target like so:
zig cc main.c -target x86_64-windows-gnu -Iinclude/ -Llib/ -lraylib -lgdi32 -limm32 -lwinmm -o main.exe
But both of these result in the error lld-link: error: could not open 'raylib.lib': No such file or directory
Tested with the following versions:
Operating System: Windows 10 19042
So, I just downloaded Zig, and I have this Raylib project.
This is what my project looks like:
When I run this with GCC it works:
gcc main.c -Iinclude/ -Llib/ -lraylib -lgdi32 -limm32 -lwinmm -o main.exeWhen I run this with Zig, it does not:
zig cc main.c -Iinclude/ -Llib/ -lraylib -lgdi32 -limm32 -lwinmm -o main.exeI tried adding the target like so:
zig cc main.c -target x86_64-windows-gnu -Iinclude/ -Llib/ -lraylib -lgdi32 -limm32 -lwinmm -o main.exeBut both of these result in the error
lld-link: error: could not open 'raylib.lib': No such file or directory