安装一个编辑器,总是不由自主的兴奋的要写个hello world!证明下。
but,安装完minGW后,直接报错。
mi@DESKTOP-6M7BOMG /d/C++/code
$ gcc hello.c
In file included from d:\mingw\include\stdio.h:55,
from hello.c:1:
d:\mingw\include\_mingw.h:73:10: fatal error: w32api.h: No such file or directory
#include <w32api.h>
没有win32api,于是楼主去下载了win32api的package,如图
接着又报错;
mi@DESKTOP-6M7BOMG /d/C++/code
$ gcc hello.c
In file included from d:\mingw\include\stdio.h:55,
from hello.c:1:
d:\mingw\include\_mingw.h:174:10: fatal error: features.h: No such file or directory
#include <features.h>
^~~~~~~~~~~~
compilation terminated.
这尼娜,说没有features.h 可我源文件引用的是stdio.h呀,结果发现,不是直接用的\mingw\include下的stdio.h 而是用的_min