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

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

    You are using g++ 4.6 version you must invoke the flag -std=c++0x to compile

    g++ -std=c++0x *.cpp -o output

    0 讨论(0)
提交回复
热议问题