Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在包含 vDSP-Framework 时遇到问题。我认为这只是要做的步骤:
#include <Accelerate/Accelerate.h> void test() { float a[1024], b[1024], c[1024]; vDSP_vmul( a, 1, b, 1, c, 1, 1024 ); }
但是如果我尝试构建,我会得到一个错误:
"_vmul", referenced from:
我想我没有链接框架。但我该怎么做呢?
如果我没记错的话,vDSP 函数在 Accelerate 框架中。
从 Build Phases 选项卡上的目标设置中,展开标题为“Link Binary With Libraries”的区域。
从那里您可以按加号按钮添加新框架。在列表中找到 Accelerate 并添加它。
然后,您应该能够在您的应用程序中使用这些功能。