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

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

    Finally found out what to do. Added the -std=c++0x compiler argument under Project Properties -> C/C++ Build -> Settings -> GCC C++ Compiler -> Miscellaneous. It works now!

    But how to add this flag by default for all C++ projects? Anybody?

提交回复
热议问题