Eclipse 绝对路径配置
我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(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 theroot 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.