【发布时间】:2019-04-13 20:59:43
【问题描述】:
我搜索dirent找到C例程
find / -iregex ".*/dirent.h$" 2>/dev/null
返回相同的系列
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/dirent.h
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/dirent.h
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys/dirent.h
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/dirent.h
如何确保我的程序调用的是哪个dirent.h?
【问题讨论】: