开发者

How to include the vDSP-Framework (iOS)?

I have problems to include the vDSP-Framework. I thought it is just that steps todo:

#include <Accelerate/Accelerate.h>

void test()
{
  float a[1024], b[1024], c[1024];开发者_Python百科
  vDSP_vmul( a, 1, b, 1, c, 1, 1024 );
}

but if i try to build,I get an error:

 "_vmul", referenced from:

I think i didnt link the framework. but how can I do that?


The vDSP functions are in the Accelerate framework, if I remember correctly.

From your target's settings on the Build Phases tab, expand the area titled "Link Binary With Libraries".

From there you can press the plus button to add a new framework. Locate Accelerate in the list and add it.

You should then be able to use the functions in your app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜