You are on page 1of 2

Environment Setup Hints

Java Installation:
1. Use this file jdk-8u60-windows-i586.exe to install JDK to your computer.

Eclipse Installation:
1. Extract eclipse-cpp-mars-R-win32.zip in any folder in C:\Program Files.
2. Create a shortcut to Eclipse.exe on the desktop.
Mingw Compiler Installation:
1. Install mingw-get-setup.exe
2. Install Continue
3. Choose Basic Setup
4. Select on the following:
a. mingw-developer-toolkit
b. mingw32-base
c. mingw32-gcc-g++
d. msys-base
5. Add MinGW to the PATH
a. Right Click on My Computer Properties
b. Choose Advanced system settings
c. Choose Environment Variables
d. In the system variables, Choose PATH Edit
e. In the end of the line add the following:
C:\MinGW\bin;C:\MinGW\msys\1.0\bin;

Create a new Project in Eclipse


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.

Open Eclipse
Close the Welcome window if exists.
Select File New Project
Select C/C++ C Project
Press Next
In Project Type: Select Executable Empty Project
In Toolchains: MinGW GCC
Put a name for your project
Press Finish
Select the project
Select File New Folder
Give a name to the folder
Press Finish
Select the folder
Select File New Source File
Give a name to the source file.
Press Finish.
Write your Program in the created source file.
Right Click on the project.
Press Clean Project
Right Click on the project.
Press Build Project
Right Click on the project.
Run As 1 Local C/C++ Application

You might also like