mingw gcc 编译helloworld 不生成可执行文件
文件名为hello.c,代码为
#include <stdio.h>
int main()
{
printf("hello world!\n");
return 0;
}
gcc版本4.8.1,执行的命令为 gcc -o hello hello.c(gcc -o hello.exe hello.c)都没有可执行文件生成,C:\MinGW\bin已加到环境变量。
但是将同样的mingw和hello.c拷贝到其他同学PC(同样是64位,试了两台都可以)却可以生成hello.exe,执行也没正常。请问是我电脑配置有问题吗?还是需要安装或者卸载什么软件吗?