i don't know for sure but possibly you have slackware packages there
use a package from here
ftp://mirrors.laffeycomputer.com/pub.../gcc/releases/
please never install a non-distribution compiler --prefix=usr over your other original one
everything will get borked
gcc versions are not reverse compatable
to get g++ just use
--enable-languages=c,c++
generally unless you know what you are doing compiling a new compiler with an older version is a little tricky and you could end up with junk from both mixed together
i hesitate to put this because i am not 100% sure but i think for that version you should use this
i say put it in /opt/gcc-3.4 to be safe
start off in the package directory after you untar it then
Code:
mkdir ../gcc-build
cd ../gcc-build
../gcc-3.4.0/configure --prefix=/opt/gcc-3.4 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++
(i'm not sure about --enable-__cxa_atexit i know it works for 3.4.1 if it doesn't recognize the flag leave it out)
then and this bootstap switch is important
Code:
make bootstrap
make install
after you are done you will have to add the lib path /opt/gcc-3.4/lib to /etc/ld.so.conf and as root run
ldconfig