zl程序教程

您现在的位置是:首页 >  其它

当前栏目

VC2015编译旧工程找不到头文件stdio.h

编译 工程 不到 头文件
2023-09-14 09:10:38 时间

出错如下:


2>------ Build started: Project: hc08, Configuration: Debug Win32 ------

2>  ralloc.c
2>f:\work\sdcccode\sdcc\src\common.h(21): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
2>  main.c
2>f:\work\sdcccode\sdcc\src\common.h(21): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
2>  gen.c
2>f:\work\sdcccode\sdcc\src\hc08\gen.c(31): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory

2>  Generating Code...


要解决这个问题,就是让编译器找到相应的目录,在WIN10里,已经放到目录:

C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt


因此只需要在工程里设置搜索的头文件即可解决。