<Accelerate/Accelerate.h> “file not found”

丶灬走出姿态 提交于 2021-01-29 05:57:27

问题


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".

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".

Any idea?


回答1:


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

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'.

And then simply include using —

#import <Accelerate/Accelerate.h>


来源:https://stackoverflow.com/questions/13261730/accelerate-accelerate-h-file-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!