By the way:
is it really gcc 4.7.2 ?
Where did you get it from ?
I wonder what is surprising you?)
ftp://mirrors.kernel.org/gnu/gcc/gcc-4.7.2
I know that it is possible to compile gcc on your own.
But I wonder why you do it.
Code::Blocks compiles fine on CentOS 5 with default packages (gcc 4.
1.2) if you have repoforge-repo active (wxGTK), except for the NassiShneiderman-plugin, which needs a boost version, that is not available for CentOS/RedHat 5.
Or at least was not when first building packages for my repo.
By the way, you can also use prebuild Code::Blocks packages from my repo (see signature).