gcc - include - 具体位置: 一、gcc - C - 头文件的具体位置 1、 查找命令:[root@rockylinux tmp]# gcc -xc -E -v - 2、 c-include的位置: [root@rockylinux tmp]# gcc -xc -E -v - #include "..." search starts here: #include search starts here: /usr/lib/gcc/x86_64-redhat-linux/8/include /usr/local/include /usr/include 二、gcc - cpp - 头文件的位置: 1、 查找命令: 2、 cpp-include的位置:[root@rockylinux tmp]# gcc -xc++ -E -v - [root@rockylinux tmp]# gcc -xc++ -E -v - #include "..." search starts here: #include search starts here: /usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8 /usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/x86_64-redhat-linux /usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/backward /usr/lib/gcc/x86_64-redhat-linux/8/include /usr/local/include /usr/include