In my office we have gcc-4.5.1, with that version my c++ project works fine. If I compile the same project at home with Ubuntu 12.04 with gcc-4.6, I have lot of errors and I couldn't compile at all. I spent some time on the Internet to build the gcc from sources but the installation had lot of issues and the build is broken.
I am looking for a way to downgrade my gcc version to 4.5.1.
If someone can also give a step by step way of compiling gcc from sources would be appreciated.