Trace: » fink » thesis » git_tutorial » c_plus_plus_firstcode » start » reviews » pointers » pcomp_without_computers » networked_objects » eclipse

How to create c++ projects in eclipse

  1. Get eclipse. Eclipse comes with only the runtime binaries, the support for C/C++ (the C Development Toolkit) has to be installed as an update.
  2. In the “Help” menu select “Software Updates” and the “Find and Install...”. Select “Search for new features to install”, and then “Next >”. Leave “Ignore features not applicable to this environment” checked and de-select all update sites.
  3. Now select the “Callisto update site” and then “Next >”. It should connect to the Callisto update site and look for the newest version.
  4. Select the latest version of the “Eclipse C/C++ Development Tools”.
  5. In the next window, you will have to “accept” the license, and then select “Next “.
  6. It will again show you an overview, which you can just accept and select “Finish”.
  7. It will warn you that the Eclipse CDT is an “unsigned feature”. But you can just ignore that and select “Install All”.
  8. Once you are in Eclipse, you are given an empty workspace. You now have to start a new project.
  9. To do so, select “File” / “New” / “Project...”. Expand the section “C++” and select “Managed Make C++ Project”, then click “Next >”. The difference between a STD and Managed is in Standart you have build your make file, the compiler doesn’t build it for you.
  10. On the next screen, you have to give your project a name. In this case, it will be “HelloWorld”, however, you may use any name you like. Leave the “Use default” in “Project Contents” checked.
  11. The next two settings about “Project Type” and additional settings are usually ok, click them if they are not clicked both. You can see above that your executable is going to be only for OS X.
  12. Accept when Eclipse tries to change your perspective to C/C++ settings.

Notes