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

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

    Is that an actual compiler error or a Code Analysis error? Some times the code analysis can be a bit sketchy and report non-valid errors.

    To turn off code analysis for the project, right click on your project in the Project Explorer, click on Properties, then go to the C/C++ General tab, then Code Analysis. Then click on "Use Project Settings" and disable the ones that you do not wish for.

    Also, are you sure you are compiling with the C++11 compiler?

提交回复
热议问题