How To Setup C Compiler and Eclipse CDC
How To Setup C Compiler and Eclipse CDC
Install MinGW and MinSYS Eclipse only provides the Integrated Development Environment (IDE) but it is missing the actual c++ compiler. Download MinGW from http://sourceforge.net/projects/mingw/ this installer contains: MinGW - - Minimalist GNU for Windows, a native Windows port of the GNU Compiler Collection (GCC) MinSYS - is a collection of GNU utilities such as bash, make, gawk and grep When the installer ask for the list of components to be installed make sure you include all the components (c++ compiler, mysys)
Setup Environment Variables After installing you have to set up PATH environment variable to make sure that MinGW and MinSYS executable are accessible.
Append to PATH
C:\MinGW\bin;C:\MinGW\msys\1.0\bin
Test if MinGMV and MinSYS is working propelly Open a new command prompt window and type: make --version Open a new command prompt window and type: g++ --version
Eclipse CDC provides a fully functional C and C++ Integrated Development Environment based on the Eclipse platform. Install latest JDK (Java Development Kit) Make sure JDK is installed on your machine. If you already have a JDK installed you should update to the latest version (especially important on 64bit machines due to some JVM (Java Visrtual Machine) bug in the earlier versions) Recommended version: Version 6 update 31
http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html
Right click on the project root -> Run as-> Local C/C++ Application Build and Run is accessible from the toolbar also.