简体   繁体   中英

How to open existing C++ project with Eclipse?

I have two projects in C++ that I need to run and build both in Windows and Linux. We are using Microsoft TFS for source control.

  • For windows we are using Visual Studio.
  • For Linux we are using Eclipse. (I don't have much experience with Eclipse)

I had managed to configure and build properly the projects in both platforms.

I checked in TFS the .cproject and .project from eclipse, so I can use it in another computer.

Now I am trying to get the projects in another Linux computer and I don't know how to do it.

I tried following this instructions , but I don't have my source code zipped.

Other places like here suggest creating a new project.

Isn't there a way to open an existing project in Eclipse similar to Visual Studio?

Do I have to create a new project? If so, how can I keep the configurations I did to be able to build the project so other developer can use them?

File > Import... > General > Existing projects into workspace

Don't select an archive file. Set the root directory to where your .project and .cproject files are located. Your project should show up in the list. Make sure you don't forget to check the checkbox in front of your project.

Committing eclipse project files to a version control system is perfectly fine as long as you don't use absolute paths in your project settings. Use environment variables to specify paths which differ between developer machines.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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