Author Topic: Permission denied  (Read 7459 times)

Offline c++newer

  • Single posting newcomer
  • *
  • Posts: 3
Permission denied
« on: June 29, 2011, 06:03:21 pm »
Hi everyone,
I'm a new user of codeblock, I want to use it instead of proprietary soft like visual c++ but I get some trouble whit the soft.
Indeed when I create a new project it's work, i can built it. Then I can write code and built it. But after a while I see :
||=== declarations, Debug ===|
ld.exe||cannot open output file bin\Debug\declarations.exe Permission denied|
||=== Build finished: 1 errors, 0 warnings ===|

What can I do ? I don't understand what happen.

Thanks for your help.

(I'm sorry if I have done some mistakes, I'm not English  :?).

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Permission denied
« Reply #1 on: June 29, 2011, 06:25:38 pm »
This can happen, if your program does not close cleanly, and keeps on running in the background.

You can use the processmanagher to see if there are any instances of your executable still alive and kill them.

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: Permission denied
« Reply #2 on: June 29, 2011, 10:14:27 pm »
This can also happen if some security software happens to be looking into the file at the same time your compiler tries to overwrite it.

This happens a lot on my older laptop, it's so slow, that scanning the file for viruses (with the lowest process priority) takes a second or two. So I just turn it off completely while I'm working.

Offline c++newer

  • Single posting newcomer
  • *
  • Posts: 3
Re: Permission denied
« Reply #3 on: June 30, 2011, 02:56:46 pm »
Thanks for your answers.

You can use the processmanagher to see if there are any instances of your executable still alive and kill them.
In the process manager, I have to look the name of my executable ? Or something else ?

This can also happen if some security software happens to be looking into the file at the same time your compiler tries to overwrite it.
I see my firewall (Comodo) putting my executable in untrusted area, but I allowed it after. I will see if I turn it into game mode

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: Permission denied
« Reply #4 on: June 30, 2011, 05:46:22 pm »
yeah, look for the name of your executable and kill it.

Offline c++newer

  • Single posting newcomer
  • *
  • Posts: 3
Re: Permission denied
« Reply #5 on: July 01, 2011, 05:16:44 pm »
So I have done some tests and my issue comes from my firewall.
I put it in PC "sain" not secure mode and it's work.

Thanks a lot for your help, I'm going to code freely