LuaXD's blog

By LuaXD, 11 years ago, In English

I have heard that there are some issues when installing the 4.9 GCC release on any Linux distro. Is this true? In any case, can someone tell me how to install the 4.9 GCC release on any Linux distro? Thanks!

  • Vote: I like it
  • +7
  • Vote: I do not like it

»
11 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

The title says C++11 compiler. you don't have to install gcc4.9 to have most features of c++11. Just compile with --std=c++11

»
11 years ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

You'd better use the following command in shell: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-4.7 g++-4.7

Then you can use the command g++ with the option -std=c++11 to compile the code in c++11 mode. Good luck