Блог пользователя LuaXD

Автор LuaXD, 9 лет назад, По-английски

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!

  • Проголосовать: нравится
  • +7
  • Проголосовать: не нравится

»
9 лет назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

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

»
9 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

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