How to enable C++11/C++0x support in Eclipse CDT?

Eclipse 3.7.1
CDT 1.4.1
GCC 4.6.2

This is an example of a piece of C++11 code:

auto text = std::unique_ptr<char[]>(new char[len]);

The Eclipse editor complains about:

Function 'unique_ptr' could not be resolved

The Makefile compilation works fine. How to make Eclipse stop complaining about these sort of errors?

17 Answers
17

Leave a Comment