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

出错如下:


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


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




你可能感兴趣的:(VC)