Compile c++14-code with g++

前端 未结 4 1348
执笔经年
执笔经年 2020-12-02 16:35

I\'m using g++ 4.8.4 on Ubuntu 14.04 LTS. When trying to compile with \'-std=c++14\', I get this error:

g++: error unrecognized command line option \'-std=c+         


        
4条回答
  •  一整个雨季
    2020-12-02 17:19

    Follow the instructions at https://gist.github.com/application2000/73fd6f4bf1be6600a2cf9f56315a2d91 to set up the gcc version you need - gcc 5 or gcc 6 - on Ubuntu 14.04. The instructions include configuring update-alternatives to allow you to switch between versions as you need to.

提交回复
热议问题