#How to link a dynamic library

1 messages · Page 1 of 1 (latest)

barren sail
#

How can I link a .dll or .so library through build.zig?

hasty summit
#

exe.linkSystemLibrary("libname")

barren sail
#

If it's not a system library, just a .so file

I only found addLibraryPath, but the library is then not displayed in "ldd myprogram"