< Accelerate/Accelerate.h>“找不到文件"

< Accelerate/Accelerate.h>“找不到文件

问题描述:

我想将线性回归包括到我的iPhone应用程序中.经过一番搜索,我发现Accelerate Framework中的LAPACK和BLAS是适合使用的库.但是我很难在我的XCode中添加加速框架.我正在使用XCode 4.3.2和MAC OS X 10.7.4当我将以下行添加到我的XCode中时:#include它给了我找不到文件".

I want to include linear regression to my iPhone app. After some search, I figured out the LAPACK and BLAS in Accelerate Framework is the right libraries to use. But I have a hard time adding accelerate framework to my XCode. I am using XCode 4.3.2 and MAC OS X 10.7.4 When I add the following line to my XCode: #include it gives me "file not found".

如果我删除此行,则无法使用LAPACK或BLAS中的任何功能.我从以下位置复制并粘贴了该框架:/system/library/frameworks/Accelerate.framework到我的项目文件夹.我还通过按住Control键单击XCode中的项目并添加了框架来添加它.这些似乎都不起作用,我仍然收到错误:找不到文件" .

If I remove this line, I can not use any functions from LAPACK or BLAS. I have copied and paste the framework from: /system/library/frameworks/Accelerate.framework to my project folder. I also have added it by control-click on my project in XCode and add the framework. None of these seem to work and I still get the error: "file not found".

有什么主意吗?

确定要在构建设置中包含iOS Accelerate Framework吗?

Are you sure you are including the iOS Accelerate Framework in the build settings?

我不确定Xcode 4.3.2中的情况如何,但是当前您需要在单击项目时在目标"部分中添加框架.进入构建阶段,然后单击—将二进制文件与库链接".

I am unsure how things were in Xcode 4.3.2 but currently you would need to add the framework in the 'Targets' section when you click on the project. Go to build phases and click on — 'Link Binary With Libraries'.

然后只需包含使用-

#import <Accelerate/Accelerate.h>