USING THE GNU C++ PREPROCESSOR/COMPILER IN THE BCC DOMAIN
       ---------------------------------------------------------
*****
The below information is for GNU C++ Version 2.7.2.2 
and has been tested by myself in the BCC GRADUATE domain
on 29.9.1997. Unfortunately, I do not have access to the 
undergraduate domain. It is possible that this compiler 
does not exist in the undergraduate domain. What you need 
to do is to see if it exists, and if it does not, find 
the alternative C++ compiler resident in the undergraduate 
domain (which sometimes goes by the name SparcCompiler 
C++ 4.1). 

Type g++ -v to see your own version and whether it is 
properly installed.

The GNU C++ Version in the CS domain is 2.7.2.1.

--Tugrul Dayar
*****
In order to compile C++ programs with the GNU C++ preprocessor/compiler
g++ version 2.7.2 on the Unix/Solaris system:

    - For i = 1, 2, ..., nofiles
          Compile the ith C++ file (i.e., filnamei.cc) using the command:

             g++ -c filenamei.cc filenamei.o

    - Then link the separately compiled files using the command:

             g++ -o filename filename1.o filename2.o ... filenamenofiles.o


Or, better yet, write a Makefile like the one below and call it as:

             make


Makefile:
-----------------------------------------------------------------------------
CC = g++
FILES = filename1.o filename2.o .......... \
.......................................... \
.......................................... \
filenamenofiles.o

objcode:        $(FILES)
                $(CC) $(FILES) -o objcode

.cc.o : ;       $(CC)  -c $*.cc
-----------------------------------------------------------------------------

Then the compiled program may be run by typing:

             objcode


Note:
-----
   - Header files are NOT compiled
   - The .cc extension may be replaced by .C or .cxx
     Lower-case vs. upper-case makes a difference (i.e., Unix is
     case-sensitive). So be careful !

The man pages provide additional information about g++
Type "man g++" to access the man pages.