Eclipse开发linux ccpp---支持c++11特性

    xiaoxiao2021-04-15  28

    1.右击当前项目 -> properties -> C/C++ Build -> settings -> 右边的toolsettings窗口 -> gcc c++ complier  -> miscellaneous -> 在other flags输入框末尾添加 -std=c++0x 

    2.右击当前项目 -> properties -> C/C++ General -> Preprocessor include -> 右边的provider窗口 ->CDT GCC Build-in Compiler Settings -> 在Commans to get compiler sepcs初末尾添加-std=c++0x 

    3.apply , ok

    4.选中当前项目,在IDE的菜单栏(不是右键项目后的菜单)的Project -> C/C++ Index -> Re-resolve Unresloved Includes即可.

    参考链接:

    http://tangmingjie2009.iteye.com/blog/2089083

    转载请注明原文地址: https://ju.6miu.com/read-671496.html

    最新回复(0)