user865827
user865827

Reputation: 1

vfp.h in the accelerate framework doesn't link on XCode 4.0.2

I'm using the Accelerate framework to boost the performance of a piece of code that I'm running on iPhone. I require two headers from Accelerate which are vdsp and vfp. vDSP works perfectly, however I'm getting "use of undeclared identifier" when I use a function from vfp.

Here's the weird thing: When I run on the simulator, my code runs nicely (even though the editor still points to an error), and the results I expect from the functions used in vfp are there. But when I try to run on a device, I get the error.

Which means that I have my files linked correctly. Since the function works, but XCode is confused since it still says undeclared function. Or is it that iOS do not support vfp? Even though with the vector processor they should. Help please :)

Upvotes: 0

Views: 434

Answers (1)

Stephen Canon
Stephen Canon

Reputation: 106277

Take a look at the vfp.h header:

extern vFloat vceilf( vFloat A ) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_NA);

__IPHONE_NA means "not available on iOS". The Accelerate framework on iOS 4.x consists only of the vDSP, LAPACK and BLAS libraries. Please file a bug to request the features that would be useful to you!

Upvotes: 2

Related Questions