Finally, you can upgrade your system by implementing C ++ 11 GCC4.8.1. The following steps can be performed to install GCC4.8.1, sudoadd-apt-repositoryppa: ubuntu-toolchain-r/testsudoupdate-alternatives -- remove-allgccsudoupdate-alternatives -- remove
Finally, the complete implementation of C ++ 11 GCC 4.8.1.
Upgrade your system.
The following steps can be performed to install GCC 4.8.1 in Ubuntu 13.04,
Sudo add-apt-repository ppa: ubuntu-toolchain-r/test
Sudo update-alternatives -- remove-all gcc
Sudo update-alternatives -- remove-all g ++
Sudo apt-get install gcc-4.8
Sudo apt-get install g ++-4.8
Sudo update-alternatives -- install/usr/bin/gcc/usr/bin/gcc-4.8 20
Sudo update-alternatives -- install/usr/bin/g ++-4.8 20
Sudo update-alternatives -- config gcc
Sudo update-alternatives -- config g ++
Sudo apt-get update
Sudo apt-get upgrade-y
Sudo apt-get dist-upgrade
Check with gcc -- version, which is 4.8.1.
Gcc -- version
Gcc (Ubuntu 4.8.1-2ubuntu1 ~ (13.04) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
Warranty; not even for MERCHANTABILITY or fitness for a particle PURPOSE.
Recommended reading:
Ubuntu 12.04 embedded cross-compilation environment arm-linux-GCC build process graphic http://www.linuxidc.com/Linux/2013-06/85902.htm
Ubuntu 12.10 install the cross compiler arm-none-linux-gnueabi-GCC http://www.linuxidc.com/Linux/2013-03/82016.htm
Install and use http://www.linuxidc.com/Linux/2013-01/78159.htm with Vim + GCC + GDB in Ubuntu
Two GCC versions under Ubuntu switch http://www.linuxidc.com/Linux/2012-10/72284.htm
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2