Setting up Eclipse CDT on Windows, Linux/Unix, Mac OS X
Copyright © 2005, 2006, 2007, 2008, 2009, 2010, 2011 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!
- Other Resources
- Setting up a compiler
- Setting up Eclipse
- How to fix most of the common errors on Windows
- How to fix most of the common erros on Lion (Mac OS X 10.7)
- Build error (Exec error:Launching failed), CreateProcess: make -k all error=2,
- /bin/sh: line 1: g++: command not found, Error launching external scanner info generator
- Undefined symbols for architecture x86_64 (OS X 10.7)
- No output or only sometimes output
- Error launching 'cygpath' command
- I do not have the option to start a C++ project
- Error 1, open output file blabla.exe: Permission denied
- The debugger doesn't work (on windows, with MinGW)
- Incorrect command line argument: -k'
- A Java Runtime Envrionment (JRE) or Java Development Kit (JDK) must be available...
- I have no binaries
- Unable to access jarfile startup.jar
- Problems when CYGWIN is installed on Windows
- Launch failed Reason: Unable to set working directory
- Problems not covered here
- Older Instructions
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.