How do I statically/dynamically link to a C exe using build.zig?

Thanks for the response. I don’t pretend to understand what exactly is wrong with the generated archive but I will try the llvm solution you proposed in the meantime and report back if it works out as an edit here.

Edit:
lib.use_llvm = true; was able to solve this. Thanks!

1 Like