美文网首页
出现错误Cannot find include file std

出现错误Cannot find include file std

作者: 一木之夏 | 来源:发表于2017-09-13 17:35 被阅读101次

    问题:splint *.c时报错Cannot find include file stdio.h on search path

    解决:

    include环境变量里增加stdio.h所在的路径,即:D:\MinGW\include

    【1】include头文件路径

    除了默认的/usr/include, /usr/local/include等include路径外,还可以通过设置环境变量来添加系统include的路径:

    # C

    export C_INCLUDE_PATH=XXXX:$C_INCLUDE_PATH

    # CPP

    export CPLUS_INCLUDE_PATH=XXX:$CPLUS_INCLUDE_PATH

    相关文章

      网友评论

          本文标题:出现错误Cannot find include file std

          本文链接:https://www.haomeiwen.com/subject/mhdlsxtx.html