Here are some good websites describing how to compile programs using older versions of gcc:
The website below describes how to compile mplayer using gcc 2.96
http://lists.mplayerhq.hu/pipermail/mplayer-users/2001-September/004444.html
Good website about coding in c++ in linux and how to change the gcc to version 2.95.3
http://xlife.zuavra.net/columns/20020316/
I see some other people has problems with newer versions …