ITeye博客

iOS Dev (23) 当遇到 #include "a/b.h" 肿么办?

prevention · 2014-01-07 16:12 · Markdown

iOS Dev (23) 当遇到 #include "a/b.h" 肿么办?

问题

在 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

-

转载请注明来自:http://blog.csdn.net/prevention

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。