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

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

    Running eclipse indigo and cdt 8.0.2 here. I followed all the guides, but it was still necessary to set the preprocessor define by hand to find things like std::unique_ptr. The include file "memory" checks this. Set __cplusplus to 201103L on the "Symbols" tab under "Paths and Symbols" in "C++ General" in project properties.

提交回复
热议问题