Home > OS >  cc1.exe: fatal error: begginer.c: Permission denied compilation terminated
cc1.exe: fatal error: begginer.c: Permission denied compilation terminated

Time:01-03

I deleted my antivirus software because the terminal from visual studio code kept saying

permission was denied

Now I'm getting this error, I'm running a C file with Visual Studio Code.

Can someone help me, please?

[Running] cd "c:\Users\wanofficial\Downloads\DOMCart (1)\DOMCart\" &&
gcc begginer.c -o begginer && "c:\Users\wanofficial\Downloads\DOMCart (1)\DOMCart\"begginer cc1.exe: fatal error: begginer.c: Permission denied compilation terminated.

CodePudding user response:

This might be caused because the executable process is already running. You can't overwrite a file that's in use. Or do you have permission to write the destination file in that directory?

CodePudding user response:

I wasn't saving the file I was running it. I have to check to see if I have permission but I don't think that's the case.

  •  Tags:  
  • c
  • Related