How to install GCC 4.5.2 in Ubuntu 10.10

ubuntu-10.10

I have Ubuntu 10.10. The command: g++ -v evokes the response
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)

And the command sudo apt-get install g++ evokes the response
g++ is already the newest version.

However, the following site tells me that the latest version of GNU is 4.5.2:
http://gcc.gnu.org/

How do I upgrade my GCC compiler to the latest 4.5.2?

Best Answer

The apt-get install command tells you that this is the latest version depending on the Ubuntu repositories.

The GCC website tells you the latest version developed by GCC project. That is it.

So, you need to install the package from source if you want to run the latest version or wait until Ubuntu guys releases a new version to catch the current release. This is general and not related to GCC project only.

Related Topic