简体   繁体   English

Eclipse CDT“路径必须包含项目和资源名称”

[英]Eclipse CDT “Path must include project and resource name”

I've been banging my head against a brick wall with this, so any help will be much appreciated :) 我一直在用砖头撞墙,所以任何帮助都会非常感激:)

I have created two projects with the following structure. 我创建了两个具有以下结构的项目。

  1. There is one source folder under C:\\ide\\xxx\\source C:\\ ide \\ xxx \\ source下有一个源文件夹
  2. There is a project folder under C:\\ide\\xxx\\build1 C:\\ ide \\ xxx \\ build1下有一个项目文件夹
  3. There is a project folder under C:\\ide\\xxx\\build2 C:\\ ide \\ xxx \\ build2下有一个项目文件夹
  4. Both build1 and build2 include the linked folder C:\\ide\\xxx\\source using the variable MYBUILD_ROOT="C:\\ide\\xxx". build1和build2都使用变量MYBUILD_ROOT =“C:\\ ide \\ xxx”包含链接文件夹C:\\ ide \\ xxx \\ source。

build2 compiles just fine using the internal builder. build2使用内部构建器编译得很好。 However, build1 doesn't even start to build because it reports 但是,build1甚至没有开始构建,因为它报告

> **** Rebuild of configuration Release for project CoreMarkTs1 ****
> 
> **** Internal Builder is used for build               **** 
> Build error
> Path must include project and resource
> name: /build1

Any help would be much appreciated. 任何帮助将非常感激。

The question is 3 years old, I know, but just in case someone stumbles upon it with the same problem (as I did) 问题是3岁,我知道,但万一有人偶然发现同样的问题(就像我一样)

This thread might answer the problem: Eclipse CDT Invalid Project Path . 此线程可能会回答问题: Eclipse CDT无效的项目路径 In case The "Discovery Options" isn't there, this other thread explains how to make it reappear: Discovery Options in Eclipse C/C++ 如果没有“发现选项”,则另一个线程将解释如何重新出现: Eclipse C / C ++中的发现选项

In my case, this manipulation didn't do the trick. 就我而言,这种操纵并没有成功。 I figured afterwards that I had a malformed path in my loaded DLL list (Project Properties > C/C++ Build > Settings > Cross G++ Linker > Miscellaneous > Other objects). 我后来发现我在加载的DLL列表中有一个格式错误的路径(项目属性> C / C ++构建>设置>交叉G ++链接器>杂项>其他对象)。 I corrected the faulty path to a DLL and now the "Path must include project and resource" error is gone (Now I've just got regular errors :P) 我纠正了DLL的错误路径,现在“路径必须包含项目和资源”错误消失了(现在我只是经常出错:P)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM