#How would I call libexif from zig?
1 messages · Page 1 of 1 (latest)
Do you know how to include a C library in a project yet, or are you having some trouble with this specific library? I don't know if your question is about how to call an external library, or a how to use this particular library, or do you need help understanding EXIF?
How to include a C library in a project.
This is how I normally do it:
Either create a C file which loads the correct headers and use addTranslateC in your build.zig, handwrite the correct extern functions, or use zig translate-c directly
If it's a system library, link to it directly
Otherwise add a build step to compile the library and link that