cc1plus: error: unrecognized command line option “-std=c++11” with g++

后端 未结 4 2000
后悔当初
后悔当初 2020-12-01 02:31

I\'m trying to compile using g++ and either the -std=c++11 or c++0x flags.

However, I get this error

cc1plus:         


        
4条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 02:58

    I also got same error, compiling with -D flag fixed it, Try this:

    g++ -Dstd=c++11

提交回复
热议问题