您的位置:首页 > 编程语言 > Java开发

eclipse CDT 相关设置

2016-08-26 16:29 429 查看
1、eclipse CDT 支持C++11 设置

右击项目-> properties , 如图



2、解决 unresolved inclusion 问题 (系统头件找不到,比如:iostream)

右击项目 > Properties > C/C++ General > Preprocessor Includes... > Providers
and select "CDT GCC Built-in Compiler Settings".



注意:一定要勾选上 “Use global provider shared between projects”

3、加入第三方 include 头文件

右击项目 > Properties > C/C++ General > Preprocessor Includes... > Entries ...>GNU C++ .....>

CDT User Setting Entries ...>
点击 Add 按钮,添加第三方头文件路径

4、解决

symbol cout could not be resolved

如何在保证,所有头文件都正确导入的情况下:

右击项目 ....> index ....> 选择 rebuild

Project > Properties > Settings > Binary Parsers > "GNU Elf Parser"

helped in my case. I had the "Elf Parser" checked.

5、解决__cplusplus < 201103L 问题,以支持C++11

Project->Properties->C++ General->Pahts and Symbols->Symbols(选项卡)

增加__cplusplus Symbol然后设置值为201103L

注意:cplusplus前面是双下划线
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  eclipse CDT C++11