error: unrecognized command line option '-std=c++14' (Code::Blocks)
<p>I am using c++ 11 i guess as per code::blocks. I was looking for a way to update to C++ 14. I found a way on one of the threads where it told me to add a flag in the compiler settings </p>

<pre><code>-std=c++14
</code></pre>

<p>My default compiler is set to GNU GCC.
However after i tested a C++ 14 feature program it showed me the following error:</p>

<pre><code>error: unrecognized command line option '-std=c++14'
</code></pre>

<p>Can anyone help me with this ? I was unable to find a solution online.
Also if what i did was wrong , is there any other way to switch to C++ 14?   </p>