When I updated my system from 8.1 -> 8.2 gcc didn't work anymore. I found out that the reason was in symbolic links which were not updated.
/usr/bin/gcc -> /etc/alternatives/gcc /etc/alternatives/gcc -> /usr/bin/colorgcc-3.0.1 (same goes for g++ and gcj) The right ones would be -3.0.4.. Regards, Matias