0
how to fix error?
||unrecognized command line option "-std=c++11"| in codeblocks
2 Answers
+ 6
NavigateĀ Settings -> Compiler
From the drop-down menu labelledĀ Selected compiler, select theĀ GNU GCC compiler
On the tab-panel below, selectĀ Compiler settings -> Compiler flags
From the drop-down menu labelled "Categories", selectĀ <All categories>.
Look down the check-box list of compiler options until you see:
Have g++ follow the C++11 ISO C++ language standard [-std=c++11]
If that check-box is unchecked then check it and now try to rebuild.