IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

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

    caimouse发表于 2016-11-16 14:35:38
    love 0

    出错如下:


    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


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






沪ICP备19023445号-2号
友情链接