博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
怎么查看gcc默认的include路径
阅读量:4071 次
发布时间:2019-05-25

本文共 800 字,大约阅读时间需要 2 分钟。

$ gcc -v -x c -E /dev/nullUsing built-in specs.[...]#include "..." search starts here:#include <...> search starts here: /usr/lib/gcc/x86_64-linux-gnu/4.8/include /usr/local/include /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed /usr/include/x86_64-linux-gnu /usr/includeEnd of search list.[...]
The GCC flags in order of specification:
  • -v - Enable verbose mode. In the preprocessor's case, print the final form of the include path, among other things.
  • -x c - Tells GCC that the input is to be treated as C source code. To find the G++ include path, substitute -x c++. You should be able to do the same for all the other languages supported by your GCC installation, assuming those languages support the concept of preprocessing.
  • -E - Stop after preprocessing (it's an empty source file, after all).

转载地址:http://vwhji.baihongyu.com/

你可能感兴趣的文章
PostgreSQL代码分析,查询优化部分,process_duplicate_ors
查看>>
PostgreSQL代码分析,查询优化部分,canonicalize_qual
查看>>
PostgreSQL代码分析,查询优化部分,pull_ands()和pull_ors()
查看>>
ORACLE权限管理调研笔记
查看>>
移进规约冲突一例
查看>>
IA32时钟周期的一些内容
查看>>
SM2椭圆曲线公钥密码算法
查看>>
获得github工程中的一个文件夹的方法
查看>>
《PostgreSQL技术内幕:查询优化深度探索》养成记
查看>>
PostgreSQL查询优化器详解之逻辑优化篇
查看>>
STM32中assert_param的使用
查看>>
C语言中的 (void*)0 与 (void)0
查看>>
vu 是什么
查看>>
io口的作用
查看>>
IO口的作用
查看>>
UIView的使用setNeedsDisplay
查看>>
归档与解归档
查看>>
Window
查看>>
为什么button在设置标题时要用一个方法,而不像lable一样直接用一个属性
查看>>
字符串的截取
查看>>