在编译时链接 Metal 库

发布于 2025-01-16 04:51:00 字数 192 浏览 2 评论 0原文

我有一个 Metal 库(以 .metallib 结尾的文件),我想将其链接到另一个项目中。我的问题是,无论如何指定 -L-l 标志,Metal 编译器/链接器似乎始终无法链接该库,因此我从我的项目中收到“未定义的符号”错误。在编译时将 Metal 库链接到您自己的库的正确方法是什么?

I have a Metal library (file ending in .metallib) and I would like to link it in another project. My issue is that no matter how is specify the -L and -l flags the Metal compiler/linker doesn't ever seem to be able to link the library and thus I get an "undefined symbols" error from my project. What is the correct way of linking a Metal Library to your own library at compile time?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文