-For now, codeblocks doesn't privide Binary packages for centos7. (http://www.codeblocks.org/downloads/26#linux64)
-In this thread (http://forums.codeblocks.org/index.php/topic,19588.0.html), Jens told me that he provided the codeblocks Binary Package for centos7 now.
Here is his web page: http://rpm.jenslody.de/
-Install jenslody's repo.
You can find his repo on that page, for now it is: http://rpm.jenslody.de/centos-jenslody.de-0.1-2.noarch.rpm.
Download and install it. Open Software Center and search "codeblocks", several pacakge form jenslody.de are listed.
-Because CB depends on wxgtk, I have to install wxgtk either.
-Download and install the latest epel-release RPM from
Http://dl.fedoraproject.org/pub/epel/7/x86_64/epel-release-7-1.noarch.rpm
-Install wxgtk RPM package:
# Yum install wxgtk
-Search "codeblocks" in Software Center, and install the listed packages.
Install codeblocks in centos 7