title: -fpermissive option in codeblocks. Where do I put that "-fpermissive" option?
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
  </code></pre>
  
  <p>I need help with this code. My compiler keeps asking me to use the -fpermissive option but I don't know where to input it. I've pasted the code below and the error that is shown.</p>
  
  <pre><code>using namespace std;
  
  int cx = 0, cy = 0;
  
  double x =0, y=0,  r = 5;
  
  
  int main(){
  
  ofstream myfile;
  
  myfile.open("dingo.txt");
  
  for(int g =0 ; g &lt;= 360; g++)
  
  //find x and y
  
  //Get points of a circle.
  
  x = cx + r * cos(g);
  
  y = cy + r * sin(g);
  
  //This is what pops up below:
  
  //In function int main()':
  
  //Error: name lookup of 'g' changed for ISO 'for' scoping [-fpermissive]
  
  //note: (if you use '-fpermissive' G++ will accept your code)
  
  //where should I enter the required option?
  
  myfile &lt;&lt; "X: " &lt;&lt; x &lt;&lt; "; Y: " &lt;&lt; y &lt;&lt;endl;
  
  myfile.close();
  
  return 0;
  
  }
  </code></pre>