C++ Error 'nullptr was not declared in this scope' in Eclipse IDE

后端 未结 7 600
借酒劲吻你
借酒劲吻你 2021-01-30 02:56

I am running Eclipse Helios and I have g++-4.6 installed. Hope I am not wrong that g++4.6 implements C++ 11 features. I have created a C++ project which uses the nullptr and aut

7条回答
  •  礼貌的吻别
    2021-01-30 03:35

    Go to Settings -> Compiler... And add flag to "Have g++ follow the coming C++0x ISO C++ language standard [std=c++0x]

提交回复
热议问题