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

前端 未结 8 2175
一个人的身影
一个人的身影 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:29

    a.exe is also the name of a virus. I suspect your computer's security software is deleting or quarantining the file because it believes it is a virus. Use redFIVE's suggestion to rename your output file to "print.exe" so that the virus scanner does not delete it.

提交回复
热议问题