1. Project settings
Right click your project and properties
add
1 |
-std=c++11 |
under
C/C++ Build – Settings – LLVM Clang C++ – Miscellaneous
Note: Do this for each build configuration (e.g. Debug, Release)
I have not found a better solution yet.
2. Globally add c++11 to the preprocessor
Window – Preferences – C/C++ – Build – Settings – Discovery Tab – CDT GCC Built-in Compiler Settings [Shared]
add
1 |
-std=c++11 |
after the ${COMMAND}