title: Error when building a C++ program for the second time
body: <p>After some time I've got this problem with my C++ compiler.
  When I write the code and I compile if for the first time, there's no problem and I can execute it normally. But then, <strong>after the program is finished</strong> in the terminal, if I make any change in the code and try to compile it again, I get this problem:</p>
  
  <p><em>c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot open output file C:\Users\gabri\Codes/test.exe: Permission denied
  collect2.exe: error: ld returned 1 exit status</em></p>
  
  <p>And I get access denied when trying to run the .exe file after that.
  I have no idea how to solve it. I try to compile usually in Sublime but even in an IDE like Codeblocks I get the same problem.</p>
  
  <p><a href="https://i.stack.imgur.com/kEhum.jpg" rel="nofollow noreferrer">I don't know if it might help, but this is an image of my PC's Path, just in case.</a></p>