PDA

View Full Version : [SOLVED] Using gcc 4.7 in Ubuntu 12.04 ?



prismctg
August 24th, 2012, 02:44 PM
How to use gcc 4.7 in ubuntu 12.04 and how to make it default ?

Bachstelze
August 24th, 2012, 03:03 PM
If you have to ask, the answer is you can't. Upgrade your OS.

angryfirelord
August 24th, 2012, 06:00 PM
Is there a compelling reason to use a newer gcc? (aside from having a higher version number)

MadCow108
August 24th, 2012, 06:28 PM
4.7 has a bunch of neat features, to name a few:
transactional memory support
better c++11 and C11 support
__builtin_assume_aligned and many improvements to the autovectorizer

there are usually backports of gccs available in ppa's
e.g. the official toolchain testbuild ppa contains gcc4.7 for precise:
https://launchpad.net/~ubuntu-toolchain-r/+archive/test/+packages

in the past that worked very well for me, though the last time I used it was when gcc 4.5 was new