1 准备工作
下载mingw-get-setup.exe并且安装 参考 http://www.jb51.net/softjc/159871.html
环境变量更新:
PATH
.;C:MinGWin;%JAVA_HOME%;
C_INCLUDE_PATH
C:MinGWinclude
CPLUS_INCLUDE_PATH
C:MinGWincludec++4.8.1;C:MinGWincludec++ 4.8.1mingw32;C:MinGWincludec++4.8.1ackw
2
c:main.c
#include <stdio.h>
void main(void){
printf("hello!");
}
3 run-->cmd
C:>gcc C:main.c
C:>/a.exe
hello!
C:>