this is likely an old compiler or a missing compiler flag to enable c++11 or c++17 or whatever. nullptr is a full keyword and unlike null does not need an include to work, so the only cause of this I can think of would be the compiler not seeing it as a keyword, which implies age or flag.