如何编译 64 位 CoreAudio PlayFile 示例代码?
这是一个 CoreAudio 新手问题。我下载了 Apple 的 PlayFile 示例 代码。如果我使用提供的 Xcode 项目,它会将其构建为 32 位,并将 -arch i386
传递给编译器。如果我从命令行构建并传递 -arch i386
它仍然工作正常,但如果我删除该标志或将其更改为 -arch x86_64
,程序就会终止在 AUOpenGraph
上,错误代码为 -2005 (badComponentType)。
如何将其编译为 64 位程序?我只想知道传递给 clang
或 gcc
的标志。
This is a newbie CoreAudio question. I downloaded Apple's PlayFile sample code. If I use the provided Xcode project, it builds it as 32 bit, passing -arch i386
to the compiler. If I build from the command line and and pass -arch i386
it still all works fine, but if I remove that flag or change it to -arch x86_64
, the program dies on AUOpenGraph
with an error code of -2005 (badComponentType).
How do I compile it as a 64 bit program? I'd like to know just the flags to pass to clang
or gcc
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论