Eclipse 绝对路径配置

发布于 2024-12-29 04:57:36 字数 158 浏览 3 评论 0原文

我在 Eclipse 中创建了几个项目(带有 C/C++ 文件)。我可以在我的机器上编译。但是,当我从我的计算机迁移到另一台 PC(不同的路径)时,该项目无法打开(因为它指的是与在原始计算机上创建的路径相同)。我有什么办法可以克服这个问题吗?无论我将整个项目移动到哪条路径,我都希望该项目能够完美运行。

I have created several projects (with C/C++ files) in Eclipse. I am able to compile on my machine. But when I migrate from my machine to a different PC (different path) the project fails to open (as it is referring to the same path as created on the original machine). Is there any way I can overcome this? I would like the project to work perfectly no matter which path I move the complete project.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

您必须创建一个新的工作区,然后使用 File -> 导入您的项目。 导入 -> 将现有项目放入工作区。在这里,您必须选择旧工作区的根目录

在下面的项目列表中显示了您所有现有的项目,您可以选择所有项目并一次性导入它们。

You have to create a new Workspace and then import your projects by using File -> Import -> Existing projects into workspace. Here you have to select the root directory of your old workspace.

In the Projects list below all your existing projects are shown and you can select all and import them all at once.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文