title: ld.exe, final link failed: Permission denied - write access: yes, process still running: no
body: <p>I have a strange error. It popped out of nowhere. I was happily building (Eclipse + MingW) and suddenly on one build I got this message</p>
  
  <blockquote>
    <p>c:/mingw/mingw32/bin/ld.exe:
    final link failed: Permission denied</p>
  </blockquote>
  
  <p>Normally this happens in these two cases:</p>
  
  <ul>
  <li>no write access on build target</li>
  <li>compiled exe still running invisible</li>
  </ul>
  
  <p>Both cases are false in my case (doubled checked both on every occurance of the error, and I compiled several times before already without problems, without leaving Eclipse).</p>
  
  <p>I can work around it by cleaning the build space (Project->Clean...), but some builds later it starts to happen again.</p>
  
  <p>What other situations can cause this failure? And how to solve it?</p>