gpt4 book ai didi

c - MinGW gcc 无法解析系统头文件

转载 作者:太空宇宙 更新时间:2023-11-04 03:50:21 24 4
gpt4 key购买 nike

我正在尝试使用 MinGW64+msys 为 Windows 64 位编译我的 C 应用程序。

安装它们后,我启动了 gcc 示例程序,但出现了以下错误。

C:\MinGW\bin>gcc a.c

a.c:1:19: fatal error: stdio.h: No such file or directory

compilation terminated.

C:\MinGW\bin>

但是 stdio.h 文件在 C:\MinGW\include 中。

我应该如何解析 stdio.h?

最佳答案

您可以尝试:gcc a.c -IC:\MinGW\include 看看它是否编译。

关于c - MinGW gcc 无法解析系统头文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21129367/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com