–version shows up 4.4 on Debian Squeeze. Today I left Ubuntu because its simply not stable (about 50++ errors a day) and slow. And I dont like Unity. Debian is great. Reliable, fast and Gnome 2 is okay. I worked on a large c++ project and made heavy use of c++0x features.
My question is: how do I get at least gcc 4.6 on Debian?
Running a mixed system is no option. I mean changing sources.list and upgrade. And full upgrade is no option because of Gnome 3. I will have to wait for Debian MATE. But somehow this has to be accomplished…
You could build the GCC 4.7 (from its FSF source tar ball). This might be painful (it really depends upon your skills), and may take several hours of CPU. Before compiling it, install all the required dependencies (perhaps by compiling them from their source code), and read carefully the GCC install documentation several times.
I am not sure that you are right in avoiding mixing Debian/testing with Debian/stable. I am happily using Debian/unstable on all my desktops and laptops, so I get the latest released GCC.
When you build GCC 4.7.2 from the FSF source tarball, don’t forget to build outside of the source tree. Read carefully about the configure options (you probably want
--program-suffix=-4.7for instance). Don’t forget to enable plugins (with--enable-pluginat..../configuretime) in your GCC. You could perhaps be interested by MELT, a domain specific language to extend GCC, implemented as a [meta-] plugin.If you dislike Gnome3 -which I do understand- you might try another Debian based distribution like Linux Mint, or simply use XFCE as your desktop.