如何获得预处理程序缺省的头文件搜索路径

来源:百度知道 编辑:UC知道 时间:2024/06/04 19:31:05
在gcc编译器中

-Idir
Add the directory dir to the head of the list of directories to be searched for header files. This can be used to override a system header file, substituting your own version, since these directories are searched before the system header file directories. However, you should not use this option to add directories that contain vendor-supplied system header files (use -isystem for that). If you use more than one -I option, the directories are scanned in left-to-right order; the standard system directories come after.