[英]Is there any command to find which header file needs to be included for certain type (not function)?
对于库函数,我使用man <function>
来查找需要包含的头文件。 但是对于像size_t
, uint32_t
等类型, man
方法是行不通的。
是否有任何命令来查找所需的头文件?
另一种可能的解决方案是使用grep在本地搜索。
类似于grep -r 'typedef\\s.*\\suint32_t;' /usr/include
grep -r 'typedef\\s.*\\suint32_t;' /usr/include
应该适合您。
可能的解决方案是open http://en.cppreference.com/w/c/types/<type>
,它依赖于外部网页。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.