without .link_libc = true and exe.linkSystemLibrary("SDL");
$ zig build
install
└─ install sdl-test
└─ zig build-exe sdl-test Debug native 2 errors
sdl.zig:4:13: error: C import failed
const sdl = @cImport({
^~~~~~~~
sdl.zig:4:13: note: libc headers not available; compilation does not link against libc
same as with build-exe.
with .link_libc = true, but without exe.linkSystemLibrary("SDL");:
$ zig build
install
└─ install sdl-test
└─ zig build-exe sdl-test Debug native 2 errors
error: ld.lld: undefined symbol: SDL_Init
error: ld.lld: undefined symbol: SDL_Quit
Also same errors as with build-exe.
I think it’s not, everything as expected for me.