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

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

    Try to compile with gcc but without all standard libraries using a command like this:

    gcc  -nostdlib -c  test.c -o test.o; gcc test.o -lgcc -o test.exe
    

    One of the mingw libraries binary must generate a false positive, knowing which library would be useful.

提交回复
热议问题