Hello, I was trying to compile my project that uses external shared library .so but still no luck. I have tried to ask LLM, no one can give correct answer. I have tried to read the doc but I can not find tutorial about external .so lib, I only found tutorial for linking C file. How to do it?
A .so is a shared object/library which is loaded at runtime. In Zig, you can use std.Dynlib for this.
You probably want to add linkSystemLibrary in your build.zig: Zig Build System ⚡ Zig Programming Language
Or load it at runtime with std.DynLib.