title: How to use C11 standard in Code::Blocks
body: <p>Like the Title says I need to make <code>code::blocks</code> to work with <code>C11</code> and I can't figure out how to do it.</p>
  
  <p>I went to <code>settings</code> => <code>compiler settings</code> => <code>Other options</code> and I added <code>-std=c11</code> and tried also with <code>-std=gnu11</code>, both doesn't seems to work.</p>
  
  <p>I compiled <code>gcc-5.2</code> and then I changed the default compiler (gcc-4.9) and still no result.</p>
  
  <hr>
  
  <p>When I try to compile the following program:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
  int main(void){
      int arr[] = {0,1,2,3,4};
  
      for(int i=0;i&lt;5;i++){
          printf("%d ",arr[i]);
      }
  
      return 0;
  }
  </code></pre>
  
  <p>I get the following:</p>
  
  <pre><code>|6|error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode|
  </code></pre>
  
  <hr>
  
  <p>But if I do it in terminal (ubuntu 15.04, 64BIT, gcc-5.2):</p>
  
  <pre><code>./install/gcc-5.2.0/bin/gcc5.2 program.c -o program
  </code></pre>
  
  <p>Seems to work fine.</p>
  
  <p>My question is, how to make <code>code::blocks</code> to work with <code>c11</code> ?</p>