Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- zig cc -Wno-everything src/ctest.c
- c:zigctest>zig build
- Zig is unable to provide a libc for the chosen target 'x86_64-unknown-windows-msvc'.
- The target is non-native, so Zig also cannot use the native libc installation.
- Choose a target which has a libc available, or provide a libc installation text file.
- See `zig libc --help` for more details.
- The following command exited with error code 1:
- c:zigctestzig.exe build-exe --library c --c-source -Wno-everything -DNO_TIMER C:zigctestsrcctest.c --cache-dir C:zigctestzig-cache --name triangle -target x86_64-windows-msvc --cache on
- exec failed
- C:zigctestlibzigstdbuild.zig:768:36: 0x7ff76fece654 in std.build.Builder::std.build.Builder.exec (build.obj)
- std.debug.panic("exec failed")
- ...
- ...
- const cflags = [][]const u8{
- "-Wno-everything",
- };
- const exe = b.addExecutable("triangle", null);
- exe.linkSystemLibrary("c");
- exe.setBuildMode(mode);
- exe.setTarget(builtin.Arch.x86_64, .windows, .msvc);
- exe.addCSourceFile("src/ctest.c",cflags);
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement