yum install gcc-c++, however, the repos have an old version (4.1) which causes lots of problems and stops me from building a library. I would like to update it to latest. How can I do that?
You're referring to CentOS 5.x, based on the version number in your post. You can upgrade to
Once installed, the executable you'd use will be