你的回答和楼主的问题根本就不相对应。。。
> man gcc:看看下面这两部分内容:
> LIBRARY_PATH
> CPATH
>
在bash里你可以用export C_INCLUDE_PATH=xxxxx 来设置。
注:C_INCLUDE_PATH其实定价于-isystem,后者在man gcc中有:
Search dir for header files, after all directories specified by -I
but before the standard system directories.
还有个和-I对应的环境变量,叫CPATH。
还有个和-I对应的环境变量,叫CPATH。