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.....