忆往昔之可鉴,知来者之可追
分类: 其他平台
2018-11-14 19:42:41
1、include search path
By default, the preprocessor looks for header files included by the quote
form of the directive #include "file" first relative to
the directory of the current file, and then in a preconfigured list
of standard system directories.
For example, if /usr/include/sys/stat.h contains #include "types.h", GCC looks for types.h first in /usr/include/sys, then in its usual search path.
For the angle-bracket form #include , the
preprocessor’s default behavior is to look only in the standard system
directories. The exact search directory list depends on the target
system, how GCC is configured, and where it is installed. You can
find the default search directory list for your version of CPP by
invoking it with the -v option.
For example, on tx2