News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Permission denied

Started by c++newer, June 29, 2011, 06:03:21 PM

Previous topic - Next topic

c++newer

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  :?).

Jenna

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.

ouch

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.

c++newer

Thanks for your answers.

Quote from: jens on June 29, 2011, 06:25:38 PM
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 ?

Quote from: ouch 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.
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

ouch

yeah, look for the name of your executable and kill it.

c++newer

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