哪里C和C ++头文件GCC的样子? [英] Where does gcc look for C and C++ header files?
本文介绍了哪里C和C ++头文件GCC的样子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Unix系统中,在哪里呢头文件的gcc看一下吗?
今天早上我花了一点时间寻找一些系统的头文件,所以我认为这将是很好的信息在这里。
解决方案
`GCC -print-PROG-NAME = cc1plus` -v
此命令要求GCC其中 C ++ preprocessor它正在使用,并询问了preprocessor它查找包含
您会得到一个可靠的答案为您的特定设置。
同样,在 C preprocessor:
`GCC -print-PROG-NAME = cc1` -v
On a Unix system, where does gcc look for header files?
I spent a little time this morning looking for some system header files, so I thought this would be good information to have here.
解决方案
`gcc -print-prog-name=cc1plus` -v
This command asks gcc which C++ preprocessor it is using, and then asks that preprocessor where it looks for includes.
You will get a reliable answer for your specific setup.
Likewise, for the C preprocessor:
`gcc -print-prog-name=cc1` -v
这篇关于哪里C和C ++头文件GCC的样子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文