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

后端 未结 8 2002
长发绾君心
长发绾君心 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:29

    C++11 support in Eclipse Kepler Service Release 1 (Build id: 20130919-0819)

    In the latest release Eclipse Kepler SR1 you only have to add -std=c++11

    1. Right click on your project and click Properties
    2. Navigate to C/C++ General and Preprocessor Include Paths, Macros etc.
    3. Select the Providers tab
    4. Add -std=c++11 to Command to get compiler specs:
    5. Apply changes, the Index should be generated automatically.

    The "Command to get compiler specs:"-line should look like:

    ${COMMAND} -E -P -v -dD "${INPUTS}" -std=c++11
    

提交回复
热议问题