1.右击c++工程,在弹出菜单中选中“properties”,弹出如下界面
2.选中path and symbols项,在右侧标签栏中选中includes,给GNU C++添加include directories.
3.include directories填什么?
在终端输入gcc -v 输出如下(仅供参考),
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
想必大家已经看出来了,对就是--with-gxx-include-dir的值