将C ++项目导入Eclipse - 重叠工作空间

时间:2023-01-17 18:29:35

I have a project that I generated using make and C++ files using Unix. I want to import it to Eclipse, but get the message:

我有一个项目,我使用Unix生成make和C ++文件。我想将它导入Eclipse,但得到消息:

/workspace/Arthur/cmake/nuclear overlaps the workspace location: /workspace/Arthur/cmake/nuclear

/ workspace / Arthur / cmake / nuclear重叠工作空间位置:/ workspace / Arthur / cmake / nuclear

Even when I try to set the location to /workspace/Arthur/cmake/, /workspace/Arthur, /workspace/, I get the same message that the location overlaps with /workspace/Arthur/cmake/nuclear

即使我尝试将位置设置为/ workspace / Arthur / cmake /,/ workspace / Arthur,/ workspace /,我也会收到与/ workspace / Arthur / cmake / nuclear重叠的相同消息

What should I do?

我该怎么办?

1 个解决方案

#1


0  

An eclipse workspace for an existing project should not be in the same location as the code. The eclipse workspace directory will contain information that eclipse needs to manage your workspace, not necessarily the source code. The solution is to create the workspace in an empty location. Then import the project using File->Import->Existing Code as Makefile Project. Once you import the project, right click on the project in the Project Explorer and go to properties->C/C++Build and update the 'Build Location' to be the folder that you normally use to make the project.

现有项目的eclipse工作区不应与代码位于同一位置。 eclipse工作空间目录将包含eclipse管理工作空间所需的信息,而不一定是源代码。解决方案是在空位置创建工作区。然后使用File-> Import-> Existing Code作为Makefile项目导入项目。导入项目后,右键单击Project Explorer中的项目,然后转到属性 - > C / C ++ Build并将“构建位置”更新为您通常用于创建项目的文件夹。

#1


0  

An eclipse workspace for an existing project should not be in the same location as the code. The eclipse workspace directory will contain information that eclipse needs to manage your workspace, not necessarily the source code. The solution is to create the workspace in an empty location. Then import the project using File->Import->Existing Code as Makefile Project. Once you import the project, right click on the project in the Project Explorer and go to properties->C/C++Build and update the 'Build Location' to be the folder that you normally use to make the project.

现有项目的eclipse工作区不应与代码位于同一位置。 eclipse工作空间目录将包含eclipse管理工作空间所需的信息,而不一定是源代码。解决方案是在空位置创建工作区。然后使用File-> Import-> Existing Code作为Makefile项目导入项目。导入项目后,右键单击Project Explorer中的项目,然后转到属性 - > C / C ++ Build并将“构建位置”更新为您通常用于创建项目的文件夹。