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

后端 未结 7 616
借酒劲吻你
借酒劲吻你 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:43

    I add the ",-std=c++0x" after "-c -fmessage-length=0",under Project Properties -> C/C++ Build -> Settings -> GCC C++ Compiler -> Miscellaneous. Dont't forget to add the comma "," as the seperator.

提交回复
热议问题