How to enable C++11 in Eclipse Juno/Kepler/Luna CDT?

后端 未结 8 1948
长发绾君心
长发绾君心 2020-11-28 00:56

EDIT: It turns out this really isn\'t specific to Eclipse Kepler. I had to use the same process for Eclipse Juno. The problem was that there seem to be missing steps in othe

8条回答
  •  有刺的猬
    2020-11-28 01:33

    I use Eclipse Kepler and to fix it i did this:

    1 - Right-Click the Project >> Proprietes >> C/C++ Build :: Settings

    2 - Went to GCC G++ Compiler >> Miscellaneous >> Other Flags

     i then added -std=c++11 
     hit apply and ok
    

    That fixed my problem!

    I hope it helped!

提交回复
热议问题