what OS?
Are you running as administrator (windows)? or generally have permissions to do things?
It sounds like maybe you opened a console that was not as admin or similar problems.
See the top two answers for possible ways to resolve it.
willll wrote:
check that "filename.exe" is not running, I guess you are using Microsoft Windows, in that case you can use either Task Manager or Process Explorer : http://technet.microsoft.com/en-us/sysinternals/bb896653 to kill "filename.exe" before trying to generate it.
Sam wrote:
I have encountered the same problem you have. I found that it may have some relationship with the way you terminate your run result. When you run your code, whether it has a printout, the debugger will call the console which print a "Press any key to continue...". If you terminate the console by pressing key, it's ok; if you do it by click the close button, the problem comes as you described. When you terminate it in the latter way, you have to wait several minutes before you can rebuild your code.
winx seems to differentiate between a normal cmd prompt and an administrative one (maybe older win did too, but I don't recall it behaving the same as it does now). I was wondering if that was a possible cause as it sounded like permissions issues. I was unaware of the ghost process issue as I always run from a true console and don't close those out.
Rascake, PLEASE DO NOT DELETE YOUR QUESTION AFTER IT IS SOLVED.
You ruin any chance of your post possibly helping others.
Part of your original post looked like this:
Dev-c++ not compiling
'cannot output file, access to mingw denied' How do I fix this? I really was looking forward to beginning c++ basics.