Eclipse CDT无效的项目路径 [英] Eclipse CDT Invalid Project Path
问题描述
我的应用程序编译并运行正常,除了这个之外没有一个警告。作为一个认真的开发人员,我热衷于解决这个问题,所以我只有一个干净的构建可以带来温暖的模糊。
使用Eclipse 3.7.2和CDT 8.0.2为我工作:
- 打开项目属性| C / C ++ Build |发现选项。
- 现在点击按钮清除发现的条目:。
- 重建
它似乎是CDT 8中的一个新功能。我已经有这个无效的项目路径:重复的路径条目问题多年,这显然是新提供的解决方案。 p>
在这之前,C / C ++ General |下有重复的路径路径和符号|包含标签。我无法摆脱这些。只有当显示内置值被选中时,它们才会出现,因此它们显然是以某种方式生成的。做了这些以后,他们被替换了一个没有重复的集合。唯一的区别是在Assembly,GNU C和GNU C ++下都出现了相同的设置。以前他们是不同的套。例如,装配的是空的。
到目前为止,问题还没有返回。
I have a C project that is built using a makefile, Eclipse constantly warns about "Invalid project path: Duplicate path entries", but I cannot figure out what the hell it wants me to do. I would like to disable this warning and continue with my life.
My application compiles and runs fine, with not a single warning except this one. Being a conscientious developer I am keen to fix this problem so I have the warm fuzzies only a clean build can bring.
This worked for me with Eclipse 3.7.2 and CDT 8.0.2:
- Open the project properties | C/C++ Build | Discovery Options.
- Click the button by Clear discovered entries now:.
- Rebuild.
It is seems to be a new feature in CDT 8. I have had this "Invalid project path: Duplicate path entries" problem for years, and this is apparently the newly provided solution.
Before doing this there were duplicate paths under C/C++ General | Paths and Symbols | Includes tab. I could not get rid of these. They only appear when Show built-in values is checked, so they are apparently generated somehow. After doing the above they were replaced with a set that did not have duplicates. The only difference is that the same settings appeared under Assembly, GNU C, and GNU C++. Previously they were different sets. The ones for Assembly were empty, for example.
So far the problem has not returned.
这篇关于Eclipse CDT无效的项目路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!