Facebook
From Gentle Meerkat, 3 Years ago, written in Bash.
Embed
Download Paste or View Raw
Hits: 170
  1. $ cat main.zig
  2. const std = @import("std");
  3.  
  4. pub fn main() anyerror!void {
  5.     std.log.info("All your codebase are belong to us.", .{});
  6. }
  7.  
  8.  
  9. $ zig version
  10. 0.8.0-dev.2133+ad33e3483
  11. $ zig build-exe main.zig -lc -lSDL2 --name app -I /usr/include/SDL2 -D _REENTRANT
  12.  
  13. $ zig-1140 version
  14. 0.8.0-dev.1140+9270aae07
  15. $ zig-1140 build-exe main.zig -lc -lSDL2 --name app -I /usr/include/SDL2 -D _REENTRANT
  16. ld.lld: error: /lib64/libSDL2.so: undefined reference to fstat@GLIBC_2.33 [--no-allow-shlib-undefined]
  17. ld.lld: error: /lib64/libSDL2.so: undefined reference to stat@GLIBC_2.33 [--no-allow-shlib-undefined]
  18. error: LLDReportedFailure
  19.