Setting GCC version to 3.3

Thomas Kaiser ubuntu at kaiser-linux.li
Sun Mar 12 20:36:19 UTC 2006


Michael Williams wrote:
> Hi,
> 
> I have inherited a scientific program which depends on an ancient  
> version of the Blitz C++ library and Fortran 77. All attempts to  
> rebuild the system with gcc 4.0 have failed, so I have installed  
> gcc-3.3 and g++-3.3. The program builds with these versions of gcc,  so 
> I would like to use gcc by default on my system.
> 
> I note /usr/bin/gcc and /usr/bin/g++ are currently symlinks to  gcc-4.0 
> and g++-4.0 respectively. This website <http:// 
> viral.media.mit.edu/wiki/tiki-index.php?page=UbuntuPeersInstall>  seems 
> to suggest that changing these symlinks (and those to gcov and  gccbug) 
> is all there is to changing my default gcc version. Is this a  good 
> idea? For example, would I still be able to build Ubuntu  packages from 
> source, or do these expect the gcc symlink to point to  a particular 
> version?
> 
If you want to build with a different compiler use 'export CC=gcc-3.3' 
before you start make.

Thomas

-- 
http://www.kaiser-linux.li




More information about the ubuntu-users mailing list