Search code examples
c++c++11netbeansnullptr

Netbeans hating nullptr but still working fine


I've seen similar posts around about this but can't get Netbeans to just stop showing the error message "Unable to resolve identifier nullptr" all over my code when it's working fine. I have C++11 enabled properly, not sure what the problem is?


Solution

  • For Netbeans 7.4

    In Project Properties:

    Set "C Standard" to "C11" for the editor and "Additional Options" add "-std=c++0x" for the compiler

    In my case, I had to close and reload the files and the error mark disappears.

    Edit:

    This is not a 100% working Solution, sorry.