You may want to print these instructions before proceeding, so that you can refer to them while downloading and installing. Or, just keep this document in your browser. You should read each step completely before performing the action that it describes. This document shows information as of Summer 2015.
The following instructions were composed for downloading the most up-to-date version of Java, Eclipse, and C++.
For most (up to date) version of Mac OS X, open a terminal window and type or copy/paste the following command xcode-select --install. If that succeeds, go to the next step; if it fails, follow the Mac Xcode Command Line Tools installation instructions.
The following will appear in your terminal window; the sections showing The following directories... may not print.
The following will appear in your terminal window.
If this fails, showing
ensure that you followed Step 1 above, and have successfully installed the command line tools for Xcode.
It will then continue with the eclipse-cpp download. Again, its progress will be tracked in the terminal window; it is even larger than Java,and might take tens of minutes. Eventually the following will appear in the terminal window.
It will perform a series of download, some short, some longer (taking minutes).
and then a Workspace Launcher pop-up window will appear.
In the Workspace text box, your login name should appear between /users and /Documents\workspace, instead of my name, richardepattis.
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).
Eclipse is now installed for C++. Start the Testing instructions directly below.
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.
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.
(note: this is actually a picture from my PC)