Using the GNU Compilers on the CS Linux Machines
Current configurations for our classroom/lab machines include
multiple versions of the GNU compilers:
- The most recent version
available from the standard repositories for the distribution we use.
This is the version you get by default.
(gcc -version will tell you what it is.)
- One or more later versions obtained directly from the GNU project's Web
site, installed in /usr/local-gcc-*-install.
During the annual summer upgrade we install the most recent stable
version available and may install some earlier versions as well.
The simplest way to access the most recent version of these
compilers from the command line is to use the command
module load gcc-latest
to add the install directory to your command search path
and set other environment variables correctly.
See my notes on the ``Modules package''
for more about this command.
If you compile with one of the non-default compilers,
you should be sure that when you run your programs they can find
the associated libraries. Again the simplest way to do this is
with the above-described module load command.