Zig build, how to interoperate with C code

Hello,
I am trying to include a function from C code into a zig program. That function relies on curl, which I have installed in my system. My question is, how do I make build.zig aware of it’s location as I would do using gcc.
Thank you very much in advance

this should work, but it might not depending on where curl is located

exe_or_lib.linkSystemLibrary("curl");
2 Likes
2 Likes