CS 410 Programming Assignment 1: Clarifications and Corrections

Fall 2006 [Bono]

[1/14/05 CMB] Version of g++ to use

If the initial code we gave you for PA1 does not compile, it may be that you are using the wrong version of g++. To check which version you are running, execute the Unix command:
 g++ --version 
We are using version 3.3.2, which is also the default version; i.e., this is the version you get if you haven't done anything to change it in your .login file. (For the default version, if you do the which command, it will show it as being in /usr/usc/bin/g++ because it is linked to that location.)

You may have set up your environment to use a different version for another course. If you don't need to use the other version, we recommend you comment out the line in your .login file that looks something like this:

 source /usr/usc/gnu/2.95.2/setup.csh
In a shell script a # character comments out everything to the end of the line.

Once you comment it out, you will need to log out and log in again to reset it to the correct version.

If, instead you will need to use more than one version of g++ this semester (e.g., 402 may be using 2.95.2), you will need to run the source command shown above substituting 3.3.2 for 2.95.2 and vice versa as needed when you switch to working in one course or the other. What you put in your .login will determine which version will be in effect when you first log in.


The University of Southern California does not screen or control the content on this website and thus does not guarantee the accuracy, integrity, or quality of such content. All content on this website is provided by and is the sole responsibility of the person from which such content originated, and such content does not necessarily reflect the opinions of the University administration or the Board of Trustees