在编译时链接 Metal 库
我有一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论