当前位置: 技术问答>linux和unix
getcurdir 找不到<dir.h>这个文件
来源: 互联网 发布时间:2016-07-27
本文导语: 在编译时,提示找不到dir.h这个文件,我已经include了,请高手帮帮忙,谢谢。 | 改用这是Posix标准里的。sys/dir.h是4.2BSD 和 4.3BSD用的。 Information similar to that in the header is contained in a ...
在编译时,提示找不到dir.h这个文件,我已经include了,请高手帮帮忙,谢谢。
|
改用这是Posix标准里的。sys/dir.h是4.2BSD 和 4.3BSD用的。
Information similar to that in the header is contained in a file in 4.2 BSD and 4.3 BSD. The equivalent in these implementations of struct dirent from this volume of IEEE Std 1003.1-2001 is struct direct. The filename was changed because the name was also used in earlier implementations to refer to definitions related to the older access method; this produced name conflicts. The name of the structure was changed because this volume of IEEE Std 1003.1-2001 does not completely define what is in the structure, so it could be different on some implementations from struct direct.
Information similar to that in the header is contained in a file in 4.2 BSD and 4.3 BSD. The equivalent in these implementations of struct dirent from this volume of IEEE Std 1003.1-2001 is struct direct. The filename was changed because the name was also used in earlier implementations to refer to definitions related to the older access method; this produced name conflicts. The name of the structure was changed because this volume of IEEE Std 1003.1-2001 does not completely define what is in the structure, so it could be different on some implementations from struct direct.
|
Linux中是没有这个文件,除非是你自己写的。
可能是这个文件:dirent.h
你man getcurdir试试,看看详细说明
可能是这个文件:dirent.h
你man getcurdir试试,看看详细说明
|
include了才会报找不到这个文件啊!
这个dir.h 是自己写的吗, 看看GCC -I的路径中有没有这个文件。
没有这个文件就会报提示找不到dir.h这个文件
这个dir.h 是自己写的吗, 看看GCC -I的路径中有没有这个文件。
没有这个文件就会报提示找不到dir.h这个文件
|
dir是在sys这个目录下的,#include 就可以了!
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。