Eclipse CDT. 排除编译始终灰显(当然我也无法包括它)

huangapple go评论50阅读模式
英文:

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

问题

在ECLIPSE CDT中,复选框"排除编译"对于某些资源始终处于灰色状态(但对于大多数资源处于启用状态)。

Eclipse CDT. 排除编译始终灰显(当然我也无法包括它)

是否有其他人遇到过这个问题?也许有人知道解决方法。

英文:

In the ECLIPSE CDT the checkbox "Exclude from build" is always grayed for some resources (but for most enabled).

Eclipse CDT. 排除编译始终灰显(当然我也无法包括它)

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

huangapple
  • 本文由 发表于 2020年1月4日 02:00:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/59583214.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定