How can I add C++11 support to Code::Blocks compiler?
c++11, codeblocks
Solution
- Go to `Toolbar -> Settings -> Compiler`
- In the `Selected compiler` drop-down menu, make sure `GNU GCC Compiler` is selected
- Below that, select the `compiler settings` tab and then the `compiler flags` tab underneath
- In the list below, make sure the box for "`Have g++ follow the C++11 ISO C++ language standard [-std=c++11]`" is checked
- Click `OK` to save
Problem
I'm writing some code that requires to have C++11 support for my Code::Blocks 12.11. I am using default GNU GCC Compiler came with MingW. Is there any way I can do this?