Note that there are some explanatory texts on larger screens.

plurals
  1. POld.exe: cannot open output file ... : Permission denied
    primarykey
    data
    text
    <p>I recently installed CodeBlocks with mingw32 on Windows 7 Ultimate 32bit in order to dust off my c skills, but this problem has me somewhat stumped.</p> <p>I decided to fire off a short Fibonacci generator to make sure my setup was working, but I ran into a hurdle. </p> <p>The program compiles, links and whatnot like a charm and I get a corresponding executable which runs as expected.</p> <p>The problems occur if I try to compile again, then I get the following:</p> <pre><code>c:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot open output file bin\Debug\Fibonacci.exe: Permission denied </code></pre> <p>I can't even edit the permissions of the generated executable.</p> <p>I've checked the usual suspects:</p> <ul> <li>Executable is verily not running.</li> <li>Path to executable is read/writable to mingw32 (otherwise it wouldn't be able to build in the first place)</li> <li>I'm not running cygwin in any shape or form.</li> </ul> <p>And now for the funny bit: Usually after a few minutes, any executables generated by mingw32 which are displaying this Access Denied behaviour will automatically vanish without any intervention from me.</p> <p>I've googled this somewhat, but most of the other results were either vague or inapplicable.</p> <p>I wonder whether there is some Windows 7 security setting playing havoc with my .exe's, but I'm not that knowledgeable about Win 7 as to know where to begin searching.</p> <p>Any one have any ideas?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload