1

在我的项目中,我有这个标题:

src/thread/Semaphore.h

在我的设置中,我将 src 作为包含文件夹(但不是直接 src/thread)。然而,当我尝试:

#include <semaphore.h>

要将文件包含在 /usr/include/semaphore.h 中,Xcode 会继续包含 src/thread/Semaphore.h。当我从项目中删除文件时问题就消失了(我没有移动到垃圾箱,只是删除了引用,所以我仍然可以包含 #include "thread/Semaphore.h"),但这似乎是一个丑陋的解决方法。

如何防止 Xcode 递归添加包含目录?

4

0 回答 0