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

后端 未结 8 1951
长发绾君心
长发绾君心 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.

    0 讨论(0)
  • 2020-11-28 01:50

    The solution provided by MrEricSir only works after having the latest Eclipse Oxygen CDT installed. It doesn't work for me with Mars CDT.

    0 讨论(0)
提交回复
热议问题