Now and then I get this compilation error when compiling a c-file in Eclipse.
c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot open output file main.exe: Permission denied
It happends when I have made a change in the source-code - but not always.
I know how to solve this* but I would like to know WHY it occurs and how to avoid it?
*In eclipse I go to the debugger and terminate the main thread of the program