user770961
user770961

Reputation: 55

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];
  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?

Upvotes: 2

Views: 2367

Answers (1)

Jasarien
Jasarien

Reputation: 58458

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.

Upvotes: 4

Related Questions