The Fortran and C++ compilers and the needed headers, libraries and tools can be found in the /opt/SUNWspro subdirectory system. The current version is Studio 12 update 1. The compilers for F77, F90, F95, C and C++, together with a development tool called "sunstudio" are in /opt/SUNWspro/bin. Various libraries are in /opt/SUNWspro/lib. This includes dynamic ones, so if your program complains about not finding "mickey_mouse.so", setting
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/SUNWspro/lib
might be a good idea. There is a lot of other stuff under this subdirectory, including online-documentation, so you can get help by pointing your web browser on the SunFire login node to
file:///opt/SUNWspro/docs/index.html