问题: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
网友评论