!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
Install a new version of Eclipse to use with MinGW C++
MinGW means Minimalist GNU for Windows: GNU is a source of open source programming tools (GNU stands for GNU is Not Unix).
Before starting this handout, you should have first downloaded the files needed by MinGW C++. Now you will download a version of Eclipse that is already set up to use MinGW.
You may want to print these instructions before proceeding, so that you can refer to them while downloading and installing MinGW and Eclipse. Or, just keep this document in your browser. You should read each step completely before performing the action that it describes.
The Eclipse download requires about 200 MB of disk space; keep it on your machine, in case you need to re-install Eclipse. When installed, Eclipse requires an additional 200 MB of disk space.
The top of the following page will appear in your browser.
In this handout we will download Eclipse Standard 4.4 for Windows 32 Bit (the current version is 4.5 Mars); if your computer uses Windows, continue below; otherwise look for the pull-down list showing Windows and instead choose either Mac OS X (Cocoa) or Linux and then continue below.
It is critical that Java, MinGW, and Eclipse are either all 32 Bit or are all 64 Bit (and only if your Machine/OS supports 64 Bit): I think it easiest to use 32 Bit for everything.
You will see the following page (don't worry about the name of the institution to the right of the big downward pointing arrow).
This file should start downloading in your standard download folder. This file is about 200 Mb so it might take a while to download fully if you are on a slow internet connection (it took me about 5 minutes over a cable modem). Don't worry about the exact time as long as the download continues to make steady progress. In Chrome progress is shown on the bottom-left of the window, via the icon
The file should appear as
Terminate the window browsing the Eclipse download.
If you do not have IZArc or an equivalent unzipping program, here is the web site to download a free copy of IZarc.
Unzipping this file creates a folder named eclipseC:\Program Files\ directory.
Now you are ready to perform a one-time only setup of Eclipse on your machine.
The following splash screen will appear
and then a Workspace Launcher pop-up window will appear.
In the Workspace text box, your login name should appear between C:\Users\ and \workspace, instead of Administrator.
Leave unchecked the Use this as the default and do not ask again box. Although you will use this same workspace for the entire quarter (checking projects in and out of it), it is best to see this Workspace Launcher pop-up window each time you start Eclipse, to remind you where your workspace is located.
Progress bars will appear at the bottom of the spash screen as Eclipse loads.
Eventually the Eclipse workbench will appear with a Welcome tab covering it.
You will not see the Welcome tab when you start Eclipse after this first time. You should now see the following Eclipse workbench.
Notice the C/C++ words/icon appear on the top left (in the Window title-bar) and below the upper right-hand corner (beneath the tool-bar).
You can explore the courselib and googletestlib projects by disclosing/eliding their folders and subfolders. The software in these projects have already been built, so you do not need to build them here.
The project folder should remain unchanged. Below (and in the future) you will copy/paste this project folder to create a new project folder in which to put your source files for the new project.
and click OK.
The Editor tab for the driver.cpp file should show the following.
Notice the * prefixing the driver.cpp file name: this indicates the file has been modified but not saved. You can right-click in the file and select Save, but Eclipse will do that automatically when you build a project (if you correctly followed the instructions for installing it).
The Console window should show the following.
You can use this driver interactively to test various operations on the Set data type that is implemented by an array (from courselib). When you are done testing, the q command quits/terminates this code.
Ignore the two warning message: this code uses a for-loop counter that is not used inside the loop. When prompted, type 1000 and enter, enter, and 1000 and enter (as shown in green below).
The Console window should show the following.