源代码
#include <stdio.h>
int main()
{
printf("hello CS\n");
}
报错
Running] cd "c:\TDM-GCC-64" && gcc hello.c -o hello && "c:\TDM-GCC-64"hello
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): In function main': C:/crossdev/src/mingw-w64-v4-git/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to
WinMain'
collect2.exe: error: ld returned 1 exit status
[Done] exited with code=1 in 0.279 seconds
为啥嘞