To Install gcc-3.4 on Ubuntu 10.10, you need to download and install:
- gcc-3.4-base
http://packages.ubuntu.com/hardy-updates/gcc-3.4-base
- cpp-3.4
http://packages.ubuntu.com/hardy-updates/cpp-3.4
- gcc-3.4
http://packages.ubuntu.com/hardy-updates/gcc-3.4
On each downloaded files, right click and select "Open with Ubuntu Software Center".
Finally, type the command to make gcc-3.4 as default.
~$export CC=gcc-3.4