title: Can't compile and execute console application Code Blocks
body: <p>I have used Code blocks IDE for about a week now, and all worked fine until yesterday when I tried to build this code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
    int sum = 0 , value = 0;
  
    while(cin &gt;&gt; value){
      sum += value;
  
      cout &lt;&lt; "summen er: " &lt;&lt; endl;
      cout &lt;&lt; sum &lt;&lt;endl;
    }
    return 0;
  }
  </code></pre>
  
  <p>Which resulted in the following build log: </p>
  
  <blockquote>
    <p>(x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot open output file bin\Debug\While_input.exe: Permission denied</p>
    
    <p>collect2.exe: error: ld returned 1 exit status</p>
    
    <p>Process terminated with status 1 (0 minute(s), 0 second(s))<br>
    1 error(s), 0 warning(s) (0 minute(s), 0 second(s))</p>
  </blockquote>
  
  <p>I can no longer compile and run any code neither older projects which earlier this week worked fine.</p>
  
  <p>I googled the problem and tried the following solutions:</p>
  
  <ul>
  <li>run Code Blocks as admin</li>
  <li>switch of Firewall</li>
  <li>re install Code blocks </li>
  <li>use task manager to see whether my application was still running.</li>
  </ul>
  
  <p>So far nothing has worked. Does anyone know how I can fix this?</p>