NVidia GPU SDK 4.0.17 cannot support gcc 4.5, so I have to build gcc4.x manually.
1. Download gcc4.4.6
2. yum install mpfr-devel
3. yum install glibc-devel.i686
4. ./configure --prefix=/opt/gcc-4.4.6/ --enable-threads=posix --disable-checking --enable--long-long --with-system-zlib --enable-languages=c,c++
5. make bootstrap
6. make install
7. edit .bash_profile:
if [ -d /opt/gcc-4.4.6/bin ]; then
export PATH=/opt/gcc-4.4.6/bin:$PATH
fi