setting CC variable

I am trying to install GCC-3.1.1 on an SGI Indigo2. I already have MIPSpro 7.2.1 installed. However, when I try to configure GCC-3.1.1, I get the message "cc ERROR: cc -o conftest -g failed, You must set the environment variable CC to a working compiler."

What is the name of the MIPSpro c++ 7.2.1 file that I must set CC to? (I must admit I am rather new to Irix)

Thank you.

One way you can do is Install a pre-compiled binary of GCC from the gcc webpage. Also check your set. Type set and it will give a list of set variables for your login. Check for the gcc variable. If its not there try type setenv CC gcc.