bitdefender internet security 2020 mingw32 Permission denied

even when i writing a simple c program and trying to compile with gcc 9.2 i get massage:

c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file vscodebit.exe: Permission denied

collect2.exe: error: ld returned 1 exit status

adding the entire C:\MinGW folder to antivirus exception + the folder where i keep the .c file does not solve the problem

the text editor is visual studio code version 1.47.0 (latest version)

is there a way to solve the issue?

my windows version:


Best Answer

Answers