linux中#include 的位置

linux中的gcc编译器默认是从 "cd /usr/include/" 中查找头文件的,但是在该目录下并没有发现sys子目录。那么这个sys到底对应于系统的哪个目录?经过一番查找,我发现#include <sys/stat.h>在:"cd /usr/include/x86_64-linux-gnu/sys/stat.h"这个里面。

我的操作如下图所示:

linux中#include 的位置

我的GitHub地址:https://github.com/hei*gjun
我的博客园地址:http://www.cnblogs.com/chenmingjun
我的蚂蚁笔记博客地址:http://blog.leanote.com/chenmingjun
Copyright ©2018 黑泽明军
【转载文章务必保留出处和署名,谢谢!】