-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to link external library into zig_binary/library/test #146
Comments
Yes, that's correct. #15 was phrased as being about
I'd love to hear if you have some specific use-case and if you have any constraints about how this should work. In particular, as #15 points out, Zig can link libraries in two different ways, either by filepath, or by Also, Bazel's Does your use-case have any constraints wrt a preference for static or dynamic linking? At the moment my plan would be to start with a very simple implementation, exposing a
|
Thanks for your reply, I don't have specific use cases yet beyond kicking the tires of C / zig interop under bazel; static library is the sensible thing for me to start with.
This would be great! |
@persososo Thanks for sharing your thoughts on this! I'll close this as a duplicate of #15. Since #15 is already intended to cover this use-case. |
Is #15 necessary to write something like:
where
@FOO//:bar
is an external C/C++ library ?This seems indeed like a most welcome addition.
Is there any way to link in a C/C++ library into a zig_library/binary/test atm ?
In my trials I hit
does not have mandatory providers: 'ZigPackageInfo'
.Thanks for the great work, looking forward to connecting my first toy programs with it!
The text was updated successfully, but these errors were encountered: