gcc on Windows: generated “a.exe” file vanishes

前端 未结 8 2127
一个人的身影
一个人的身影 2021-01-12 12:01

I\'m using GCC version 4.7.1, but I\'ve also tried this on GCC 4.8. Here is the code I\'m trying to compile:

#include 

void print(int amount)         


        
相关标签:
8条回答
  • 2021-01-12 12:32

    You can stop your antivirus software from deleting your .exe by specifying the full file path (for eg: c:\MyProject) in the 'paths to be excluded from scanning' section of the antivirus software.

    0 讨论(0)
  • 2021-01-12 12:42

    I confirm is due to Antivirus.
    I did this test:
    compile helloworld.c at t=0;
    within 1 second tell McAfee not consider helloworld.exe a threat. >> the file is still there
    If I am too slow, the file will be deleted.

    0 讨论(0)
提交回复
热议问题