When I compile a C-Program with MinGW and I want to remove the exe-file it disappears. But when I hit F5 it is still there. Unlocker can't find any handles and also can't remove it. I can't modify the permissions and can't change the owner. After about 2 minutes the file gets removed. It also appears before the file was executed.
My System: Windows 7 Professional x86. My link line from makefile:
gcc -o main.exe main.o -lopengl32 -lglut32 -lglu32
How to solve this?