Setting up Eclipse CDT
On Windows, Linux/Unix, OS X
Copyright © 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Max Berger
This howto has been avaiable under different versions at different times.
This document is licensed under the Eclipse Public License - v2.0 (EPL v2.0), or any later version. Please see https://www.eclipse.org/legal/epl-2.0/ for details.
Versions between August 2011 and December 2019 where proprietary. They are 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 versions 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
- Other Resources
- Setting up a compiler
- Setting up Eclipse
-
Common Problems
- How to fix most of the common errors on Windows
- How to fix most of the common errors 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
- Feedback
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.
-
Setting up Eclipse CDT on Window, Linux/Unix, Mac OS X on Amazon.com
-
Setting up Eclipse CDT on Window, Linux/Unix, Mac OS X on Amazon.co.uk
-
Setting up Eclipse CDT on Window, Linux/Unix, Mac OS X on Amazon.de
-
Setting up Eclipse CDT on Window, Linux/Unix, Mac OS X on Amazon.fr
-
Setting up Eclipse CDT on Window, Linux/Unix, Mac OS X on Amazon.it
-
Setting up Eclipse CDT on Window, Linux/Unix, Mac OS X on Amazon.es
-
At this time, the eBook version contains updates for the following items which are not yet in the free version:
-
There are no updates in the ebook version at this time.
Screenshots may still reflect older versions of the used software, they are only updated if there is a significant change.