gpt4 book ai didi

编译错误: unable to open include file

转载 作者:行者123 更新时间:2023-11-30 15:34:25 25 4
gpt4 key购买 nike

我正在开发 xinu,并且更改了一些 *.c 文件:reschedcreateinitialiclkint。我还创建了一个名为 newheader.h 的头文件,并将其包含在上面的源文件中,如下所示

#include "hewheader.h"

修改后的*.c文件和newheader.h(包含三个外部数组)保存在名为try的目录中,因此他们的路径是:c:\xinu4win\newsrc\try

问题是,编译时出现此错误:

 Error: Unable to open include file "newheader.h" 

有什么想法吗?!

error

最佳答案

从您的图像来看,您似乎正在使用 DosBox 和(呃!)Turbo C,这意味着您正在某种描述的 DOS 下运行。

因此,几乎可以肯定,文件名仍然有 8.3 的限制,这意味着 newheader.h 会太长。

尝试将其缩短为适合您环境范围的内容,例如 newhdr.h(适用于文件和 #include)。

关于编译错误: unable to open include file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23294438/

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