Code::Blocks Forums
User forums => Help => Topic started by: sarun on October 15, 2011, 01:53:18 pm
-
I've been using Code::Blocks 10.05 for a while, then I switched to Nightly build 7075. (use same MinGW as in 10.05). But when I build a project (in Nightly build), I got this error:
ld.exe||cannot open output file bin\Debug\HelloWorld.exe Permission denied|||=== Build finished: 1 errors, 0 warnings (0 minutes, 0 seconds) ===|
and this is the build log:
-------------- Build: Debug in HelloWorld ---------------
Linking console executable: bin\Debug\HelloWorld.exe
d:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot open output file bin\Debug\HelloWorld.exe: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
1 errors, 0 warnings (0 minutes, 2 seconds)
But when I use Code::Blocks 10.05, I got no errors.
Why a different version of Code::Blocks give the different results with same MinGW?
Thanks,
PS. I've tried the Nightly build on another computer, it seems to work fine, strange.....
-
"cannot open output file bin\Debug\HelloWorld.exe: Permission denied"
This is your problem. Ensure that you have the permission to write on this file... If you do have the permission, just restart codeblocks and rebuild: the error should go away.
-
You could also look at this thread (http://forums.codeblocks.org/index.php/topic,15047.0.html); multiple ideas were discussed - one of them might be your problem as well.