Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. zig cc -Wno-everything src/ctest.c
  2.  
  3. c:zigctest>zig build
  4.  
  5. Zig is unable to provide a libc for the chosen target 'x86_64-unknown-windows-msvc'.
  6. The target is non-native, so Zig also cannot use the native libc installation.
  7. Choose a target which has a libc available, or provide a libc installation text file.
  8. See `zig libc --help` for more details.
  9. The following command exited with error code 1:
  10. 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
  11. exec failed
  12. C:zigctestlibzigstdbuild.zig:768:36: 0x7ff76fece654 in std.build.Builder::std.build.Builder.exec (build.obj)
  13. std.debug.panic("exec failed")
  14. ...
  15.  
  16. ...
  17. const cflags = [][]const u8{
  18. "-Wno-everything",
  19. };
  20.  
  21. const exe = b.addExecutable("triangle", null);
  22. exe.linkSystemLibrary("c");
  23. exe.setBuildMode(mode);
  24. exe.setTarget(builtin.Arch.x86_64, .windows, .msvc);
  25. exe.addCSourceFile("src/ctest.c",cflags);
  26. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement