-I dir
Add the directory dir to the list of directories to be searched for header files.
Directories named by -I are searched before the standard system include directories.
It is dangerous to specify a standard system include directory in an -I option.
This defeats the special treatment of system headers.
It can also defeat the repairs to buggy system headers which GCC makes when it is installed.
-isystem dir
Search dir for header files, after all directories specified by -I but before the standard system directories.
Mark it as a system directory, so that it gets the same special treatment as is applied to the standard system directories.
gcc -I and -isystem
最新推荐文章于 2024-09-14 12:11:54 发布