Code::Blocks Forums

User forums => Help => Topic started by: Nishaven on April 25, 2020, 04:15:07 pm

Title: Permission Denied Can't build and run or delete
Post by: Nishaven on April 25, 2020, 04:15:07 pm
I always get the this error when I try to build and run a code second time.

ld.exe||cannot open output file C:\Users\Dark\Desktop\cb\filename.exe Permission denied|

I also can't delete the exe. I tried to wait but it only fixes itself when i restart the computer. I checked the task manager, program is not running. Same on Process Explorer. I am logged in as admin and only user. In properties it says "Unable to display current owner" and when I try to take ownership it says access denied.
Title: Re: Permission Denied Can't build and run or delete
Post by: oBFusCATed on April 25, 2020, 04:52:55 pm
Do you have any antivirus software running and interfering with this? Have you tried to create the executable somewhere else and not on the desktop?
Title: Re: Permission Denied Can't build and run or delete
Post by: Nishaven on April 25, 2020, 05:28:08 pm
I tried other paths C or D but same. Closing antivirus seems to work. Thanks!