2

我知道还有其他一些关于这个问题的帖子,但是给出的解决方案对我没有帮助。我刚刚在我的 Windows 7 笔记本电脑上安装了 MinGW。

所以我写了一个 hello world 程序来尝试编译器,但是当我编译它时,我收到这条消息:hello.c:1:20: fatal error: stdio.h: No such file or directory #include 编译终止。

我不知道该怎么办,我已经在c目录上安装了mingw并将路径更改为mingw的bin。我使用命令 gcc hello.c -o hello 进行编译,代码是这样的:

#include <stdio.h> 
main() 
{
printf ("Hello,world\n");
} 

有什么建议么 ?谢谢你。

4

0 回答 0