Closed kilgariff closed 5 years ago
the message about not being native is correct. when you explicitly set the target triple zig always identifies that as non-native and you'll need an explicit libc file for that.
@emekoi's advice is good - try making the target native.
Note that once #514 is done, zig will have a libc available on windows regardless of whether compiling non-natively.
I'm closing this, but if the advice does not work feel free to comment and I'll re-open.
After trying to upgrade my project from zig 0.3.0 to 0.4.0 it's no longer able to build. I'm running 64-bit windows 10.
zig targets
says my native triple isx86_64-windows-msvc
.Here's the full output from
zig build
. It saysThe target is non-native
which seems wrong as the host and the target are both 64-bit windows 10.If I don't set the target,
zig build
gets further but it can't find the Windows SDK include path forwindows.h
orGL/gl.h
.