Monday, July 23, 2012

Adding existing C++ Makefile project to Ecplise for editing the files!


On linux based systems we generally compile C++ projects with Makefile. The default editors for the source code are gedit or vi/vim. However, these are not so user friendly for editing complex codes.

Therefore, many a times we want to use Eclipse for editing source files and comiple it using a Makefile. It can be done by adding the project to Eclipse in the following steps:

  1. Open Eclipse with its default workspace.
  2. Go to File->New->Makefile Project with Existing Code
  3. Browse to the main folder in which you have your project files
  4. Give appropriate project name. I generally like the name to be the same as the root folder.

No comments:

Post a Comment