I'm having trouble with Eclipse CDT. When trying to write a program with C++11 code in it, I'm getting error messages that the C++11 functions "cannot be resolved", despite the program compiling and running perfectly fine. I've searched for solutions (e.g. here or here), but none of them is working for me.
This is a small example:
I have gcc / g++ 4.7.3 installed and set the std=c++11
flag in the project settings (C/C++ Build --> Settings --> Tool Settings --> GCC C++ Compiler --> Miscellaneous)
Also, if I insert the __cplusplus
macro somewhere, it's giving me the correct value 201103
.
Any idea why this happens only for C++11 specific features?