For a newer version of this document, see the Introduction section

Setting up Eclipse CDT on Windows, Linux/Unix, Mac OS X

Max Berger

This document may not be copied, distributed, published, or larger parts being cited without the consent of the author. Small excerpts may be cited if proper attribution including a link to the authors website is given. All rights reserved.

Previous verison of this document (prior to August 2011) where published under the GNU Free Documentation License (GFDL), Version 1.2. Please refer to the appropriate document version should you want to chose that license. Please note that the GFDL does not apply to newer versions, e.g. this version of the document!


Introduction

There are several freely available C and C++ development environments. Most of them have the disadvantage that they require one particular operating system. The Eclipse IDE was written as a cross-platform development environment. Initially just written for Java, it also has a very good C/C++ development mode.

If you have already tried (and I assume failed, otherwise you wouldn't be reading this document) to install Eclipse CDT, you may want to go directly to the section called “Common Problems”.

This document describes how to install everything necessary to develop with C or C++ using only free tools on the three major operating systems Windows, Linux, and Mac OS X. It uses the Eclipse IDE, which is the same on all operating systems, thus providing a consistent user experience once installed.

There are two versions of this document:

The free online version

The free version of Setting up Eclipse CDT on Windows, Linux/Unix, Mac OS X can be found on Max Bergers website. It will always be the previous major revision of the document.

A paid eBook version

The eBook version of Setting up Eclipse CDT on Windows, Linux/Unix, Mac OS X is distributed through Amazon.com, Amazon.co.uk, and Amazon.de. It will always be the current major revision of the document.

At this time, the eBook version contains updates for the following items which are not yet in the free version:

  • Windows Vista / 7: Environment Variables

  • MinGW: Installation via mingw-get-inst, including the new path settings.

  • OS X Lion: Installation of the compiler, including XCode installation errors.

Screenshots may still reflect older versions of the used software, they are only updated if there is a significant change.

For a newer version of this document, see the Introduction section