Author Topic: Code::Blocks 10.05 vs Nightly build 7075 Problem  (Read 6190 times)

Offline sarun

  • Multiple posting newcomer
  • *
  • Posts: 14
Code::Blocks 10.05 vs Nightly build 7075 Problem
« 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:

Quote
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:

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

Offline renega_666

  • Multiple posting newcomer
  • *
  • Posts: 36
Re: Code::Blocks 10.05 vs Nightly build 7075 Problem
« Reply #1 on: October 15, 2011, 02:50:02 pm »
"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.

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Code::Blocks 10.05 vs Nightly build 7075 Problem
« Reply #2 on: October 15, 2011, 02:57:47 pm »
You could also look at this thread; multiple ideas were discussed - one of them might be your problem as well.