Windows and Avast are blocking the compilation of C programs

Asked

Viewed 952 times

0

Whenever I worked with C language, I used the college computers, so I never had trouble compiling and running them in the Dev-C++ IDE. Currently, I installed version 5.11 on my machine, but I only tried to use it today. For testing, I wrote a very basic code, saved and when clicking on "Compile and Run", I received an alert that I had never encountered before:

cannot open output file (...) tests.exe: Permission denied [Error] Ld returned 1 Exit status

Next to the error, Avast opens a navigation window, informing:
"

We just secured your file

Id.exe is trying to change or delete the file TESTING.EXE in your protected folder Documents.

"

What would be the procedure to be able to compile and run the programs normally, and prevent Antivirus from reading them before they run (as this would make the process much slower). ?

  • 1

    Windows doesn’t do anything. The AV does, so I do not use in development machine other than the Defender that is not so intrusive, even so I make exception in the folders that the compiler accesses. However it would be better to choose a better IDE, this is very problematic.

  • I get it. Which one would you recommend?

  • Has used Defender in Windows 10, so far not found problems, and has protected well.

  • @Guilhermeponsoniferreira Visual Studio or VS Code or Code::Blocks, actually anyone but Dev-C++.

1 answer

-2

Only go to the Avast icon near the clock (bottom right) > Right click on it > Go to "Avast Module Control" > And disable it for the time it takes. Hug!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.