日蚀 CDT。从构建中排除总是灰色的(当然我不能包含它)

Eclipse CDT. Exclude from build is always grayed (and I cant include it of course)

在 ECLIPSE CDT 中,某些资源的复选框 "Exclude from build" 始终为灰色(但对于大多数启用的资源)。

有没有人也遇到这个问题。也许有人知道解决方案。

这个问题已经被answered by James Blackburn in the Eclipse CDT forum:

These settings are managed in: Project Properties > C/C++ General > Paths and Symbols > Source Location

If you have a look there you should see your source file excluded and you have the option of changing the exclusion pattern.

The way this works is that these settings are stored in the cdt core model (so that they can be used by the indexer and such like) -- hence being listed under C/C++ general, but are also used by the build system when working out which files need to be built.

Hope this helps,

James