#How to use a fetched zig package?
1 messages · Page 1 of 1 (latest)
you have to add a b.dependency("lib", .{}); in your build.zig
and then add it as a module to your root exe
alrready a dep
.target = target,
.optimize = optimize,
.openssl = false, // set to true to enable TLS support
});
exe.root_module.addImport("zap", zap.module("zap"));``` <- important
ohhh
I don't have the addImport line
For a c lib is that before or after linking? or is it irrelevant?
for a c dep, you have to link it