标题: Keil uVision5编译报错warning C318: can't open file 'Nixie.h'、warning C206、e... [打印本页]

作者: lan030    时间: 2023-2-26 15:45
标题: Keil uVision5编译报错warning C318: can't open file 'Nixie.h'、warning C206、e...
main.c(3): warning C318: can't open file 'Nixie.h'
main.c(9): warning C206: 'Nixie': missing function-prototype
main.c(9): error C267: 'Nixie': requires ANSI-style prototype




网上下载的代码
搜了相关问题,添加了头文件路径到编译器,改了中文路径为英文,还是运行不了
求大佬解答


1.png (90.72 KB, 下载次数: 94)

1.png

2.png (32.6 KB, 下载次数: 95)

2.png

3.png (59.18 KB, 下载次数: 88)

3.png

作者: 人中狼    时间: 2023-2-26 18:54
文件名都不一致
作者: wpsookwpsook    时间: 2023-2-26 19:39
main.c(3): warning C318: can't open file 'Nixie.h'
没有添加啊
作者: lan030    时间: 2023-2-26 20:22
wpsookwpsook 发表于 2023-2-26 19:39
main.c(3): warning C318: can't open file 'Nixie.h'
没有添加啊

我不是添加了包含Nixie.h的文件夹到编译器了吗,要咋添加哇
作者: lan030    时间: 2023-2-26 20:22
人中狼 发表于 2023-2-26 18:54
文件名都不一致

啥文件名不一致
作者: lan030    时间: 2023-2-26 20:38
人中狼 发表于 2023-2-26 18:54
文件名都不一致

哦哦谢谢,太粗心了
作者: coody_sz    时间: 2023-2-26 20:43
没有头文件,打不开。
作者: man1234567    时间: 2023-2-27 08:44
main.c(3): warning C318: can't open file 'Nixie.h'
main.c(9): warning C206: 'Nixie': missing function-prototype
main.c(9): error C267: 'Nixie': requires ANSI-style prototype
-------一般情况是先找自己的问题,否则怼天怼地最后还得怼自己。以下山东美国话供参考-------
main.c 程序第 3 行 : 警告类型 C318 : 无法打开文件,文件名是  'Nixie.h'
main.c 程序第 9 行 : 警告类型 C206 : 丢失函数原型,函数名是 'Nixie'
main.c 程序第 9 行 : 错误类型 C267 : 需要 ANSI 样式原型支持,没找到定义 'Nixie' 的文件
作者: ZZZZZ134679    时间: 2023-2-27 14:03
nexie 和nixie 一看就是江科大




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1