atom-gpp-compiler icon indicating copy to clipboard operation
atom-gpp-compiler copied to clipboard

gcc Access is denied

Open RMJoe opened this issue 7 years ago • 8 comments

  • [x] gcc -version is installed and running.

  • [x] System path has been set.

  • [x] MinGW packages installed

I'm using Windows 10, and when I tried to compile and run a C program I get this:

issue c

I'm able to compile and run the C program using Windows Powershell but not in Atom.

RMJoe avatar Jan 29 '18 01:01 RMJoe

same for me.. Tried to create a new path for tdm which directs to my .c file, but still only works with powershell

mskeegan01 avatar Feb 24 '18 19:02 mskeegan01

It could be your virus protection stopping it. I have Norton Suite and it stops me from running and compiling. I haven't figured a way around it without turning off my protection yet

ForrestG3 avatar Apr 26 '18 17:04 ForrestG3

I found a solution that worked for me: In atom go to settings->install->packages->search for: "gpp-compiler"->settings->uncheck "Compile to Temporary Directory". Now your executables will be created in the project folder instead of users temp files.

pavelskipenes avatar May 02 '18 11:05 pavelskipenes

Nothing stated above is working for me and this issue has occurred after I had converted a python file into an executable file using pyinstaller and my c files were also in that folder and after that point of conversion my c files are not compiling and also it's executable files are also not created

deoudit avatar Jul 28 '19 09:07 deoudit

hey there I had solved this issue by including getch(); in my code

deoudit avatar Jul 28 '19 17:07 deoudit

It could be your virus protection stopping it. I have Norton Suite and it stops me from running and compiling. I haven't figured a way around it without turning off my protection yet

This worked for me too. The program runs successfully after disabling antivirus for a while. Thank you so much, man! :p

maulikpipaliya avatar Sep 29 '20 20:09 maulikpipaliya

Yes

  1. turn off real time scanning of your antivirus for sometime
  2. uncheck "compile to temporary Directory" in package settings these worked for me

K-Pranay avatar Oct 08 '20 16:10 K-Pranay

unchecking wont work better go for turning of the real time scanning in your pc

Vignesh-CP avatar Sep 03 '21 06:09 Vignesh-CP