Skip to content

Instantly share code, notes, and snippets.

@rtfb
rtfb / gist:61a02abf04cee5c5f040818c874b9c23
Created August 22, 2026 20:47
Build failure log for SDL and customised SDL_image
$ zig build run --fork=../zig-SDL_image/
info: fork ../zig-SDL_image/ matched 1 SDL_image packages
run
└─ run exe repro
└─ compile exe repro Debug native 1 errors
src/main.zig:36:64: error: expected type '[*c]sdl.struct_SDL_Surface', found '[*c]SDL_image.struct_SDL_Surface'
const texture = sdl.SDL_CreateTextureFromSurface(renderer, surface);
^~~~~~~
src/main.zig:36:64: note: pointer type child 'SDL_image.struct_SDL_Surface' cannot cast into pointer type child 'sdl.struct_SDL_Surface'
.zig-cache/o/bedec88e39ff71de5c94937e9cb51ed6/SDL_image.zig:2239:39: note: struct declared here