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
本文由 lnlidawei 原创、整理、转载,本文来自于【博客园】; 整理和转载的文章的版权归属于【原创作者】; 转载或引用时请【保留文章的来源信息】:https://www.cnblogs.com/lnlidawei/p/16469655.html