Related: Eclipse CDT "Symbol NULL could not be resolved"
I was under the impression that NULL was a standard macro in C++ and didn’t need any headers to be included. Eclipse, on the other hand, thinks it doesn’t exist.
Is there some way to remind Eclipse that I’m in C++ mode not C mode for this file, and therefore to shut up about the NULL problem?
It is, but it’s not part of the language. You still need to include
<cstddef>or<cstdlib>, etc.