英文:
Eclipse CDT. Exclude from build is always grayed (and I cant include it of course)
问题
在ECLIPSE CDT中,复选框"排除编译"对于某些资源始终处于灰色状态(但对于大多数资源处于启用状态)。
是否有其他人遇到过这个问题?也许有人知道解决方法。
英文:
In the ECLIPSE CDT the checkbox "Exclude from build" is always grayed for some resources (but for most enabled).
Did anyone has this problem as well. Maybe someone knows the sollution.
答案1
得分: 1
这个问题已经在Eclipse CDT论坛中由James Blackburn回答过了:
这些设置可以在项目属性 > C/C++通用 > 路径和符号 > 源代码位置中进行管理。
如果你在那里查看,应该能看到你的源文件被排除了,你可以选择更改排除模式。
这个工作原理是这样的,这些设置被存储在CDT核心模型中(以便可以被索引器等使用),因此在C/C++通用下列出,但也被构建系统用于确定哪些文件需要构建。
希望这能帮助你,
James
英文:
This question has already been 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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论