iOS Dev (23) 当遇到 #include "a/b.h" 肿么办?
- 作者:优快云 大锐哥
- 地址:http://blog.youkuaiyun.com/prevention
问题
在 iOS 项目中引用 C/C++ 源码,如果遇到:
#include "a/b.h"
其实就是为其 Makefile 加上参数 -Ipath-to-include
解决
- Project - TARGET - Build Settings - Other C Flags 和 Other C++ Flags
- 添加
-Ipath-to-include
参考
http://stackoverflow.com/questions/14134064/how-to-set-include-path-in-xcode-project
-