hi foks, i'm trying to use libnotify, the c headers just lays in /usr/include,
but failed to make this code compiled with zig 0.10.0-dev.4333+f5f28e0d2, what am doing wrong?
const std = @import("std");
const print = std.debug.print;
const C = @cImport({
// /usr/include/glib-2.0/glib.h
@cInclude("glib.h");
@cInclude("glib-unix.h");
// /usr/include/libnotify/notify.h
@cInclude("libnotify/notify.h");
});
pub fn main() !void {
print("{any}\n", .{C});
}
> zig run -lc -lnotify -lglib-2.0 -I/usr/include notify.zig
notify.zig:4:11: error: C import failed
const C = @cImport({
^~~~~~~~
referenced by:
main: notify.zig:15:24
comptime_0: /opt/zig-linux-x86_64-0.10.0-dev.4333+f5f28e0d2/lib/std/start.zig:60:50
remaining reference traces hidden; use '-freference-trace' to see all reference traces