lnlidawei

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 


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

 

posted on 2022-07-12 12:43  lnlidawei  阅读(185)  评论(0编辑  收藏  举报