quarta-feira, 13 de dezembro de 2017

g++4.8

You could use something like this. However, it's not recommended.
If you really know what you're doing, you can try following:
Jessie (testing) now contains gcc-4.8 which is compliant with C++11 (also gcc-4.9 is available).
I used apt-pinning in the following way:
A source to jessie was added to /etc/apt/sources.list:
deb http://ftp.uk.debian.org/debian/ jessie main non-free contrib
/etc/apt/preferences was edited as such:
    Package: *
    Pin: release a=wheezy
    Pin-Priority: 900

    Package: gcc*
    Pin: release a=jessie
    Pin-Priority: 910
Then,
$ sudo aptitude update
$ sudo aptitude install gcc-4.8/jessie

$ ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
$ sudo aptitude install g++-4.8/jessie
$ ln -s /usr/bin/g++-4.8 /usr/bin/g++

Nenhum comentário:

Postar um comentário