I am using Code Blocks 16.01 and my OS is Windows 10.
Whenever i build a code (named ''crypto.c'', for example) and execute it, the next time i try to build it i get the following error:
" ld.exe Cannot open output file C:\Users\...\crypto.exe Permission denied
error: ld returned 1 exit status
Build failed: 2 error(s), 0 warning(s)"
I looked on topics with similar problems, but i coudn't figured out how to fix this problem yet.
Also, when i try delete the crypto.exe i receive the message:
"The action can't be completed because the file is open in crypto.exe
Close the file and try again"
I believe this error is due to a hidden instance of the .exe opened somewhere, but i couldn't find it using the task manager.
How can i find and close this hidden instance of the program?
___________________________________________________________________________________________
I found out there's a process with the same name as the .exe opened when i used the Process Explorer from sysinternals, but when i try to kill the process i receive the message:
"Error opening process: Acess is denied"
Then i tried to terminate the process with de command prompt, but then i received the message:
"ERROR: The process "crypto.exe" with PID 11144 could not be terminated.
Reason: Acess is denied."