45

Does anybody know how to add a C/C++ project nature to an Eclipse project through the UI ? I'm importing a project and working with legacy code that was originally started in Visual Studio 4 and I'd really like to be able to make as much use of Eclipse's helpers as possible.

Alex Marshall
  • 10,162
  • 15
  • 72
  • 117

2 Answers2

63

Assuming you've got the CDT plugin installed

Right-click on the project.

Select: New -> Other

Under C/C++, select "Convert to a C/C++ project"

Glen
  • 21,816
  • 3
  • 61
  • 76
  • That's exactly what I was looking for Glen, thank you kindly for your answer. – Alex Marshall Aug 25 '09 at 15:05
  • 6
    In the current version, they've improved the menu item so it now reads "Convert to a C/C++ project (Adds C/C++ Nature)" – James Moore May 02 '12 at 17:20
  • 2
    Just a note: this feature works exactly as advertised: it *Adds* C/C++ Nature to a project. Which turned out to work great for my Java project which also includes JNI C++ code, allowing it to also keep it's existing Java nature. – Ogre Psalm33 Oct 01 '13 at 14:31
0

Create a new C project using the existing source code.

Mike Kucera
  • 2,003
  • 1
  • 14
  • 18