I have installed MinGW on Windows 7 i did write a hello world app...
#include <stdio.h>
void main()
{
printf("Hallo, Welt!\n");
};
i did run
gcc Hello.c -o Hello
this did create a exe app named Hello.exe I did run it and it said hello as it should
I did add a comment to the file, save it, and rerun the compiler in CMD as Admin then i got error
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file Hello.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
So i did try to delete the file in the windows file explorer a window did pop up and did ask me to use administrator rights to delete the file so i did permit this admin rights as i am admin then it did popup a other message ... i need some rights from the computer it self i dont know what i should do now ... i am admin of the computer and i cant delete the file ... if i rightclick the file and open the file settings and there the permissions i see the admin should have all permissions.
the file is not running as i see it ... the file is not locked by any thing
what is wrong ... is it because of the code or the compiler or is it a window thing ... how can i kill this file?
Edit: The file is not running ... in Taskmanager when displaying all tasks of any user the file dos not appear any how and is not running.
Antivirus is off and it has no influence on the problem i did also try with firewall off
the file keeps unkillable.