I get this message when compiling C++ on gcc 4.3
error: ‘NULL’ was not declared in this scope
It appears and disappears and I don't know why. Why?
Thanks.
NULL is not a keyword. It's an identifier defined in some standard headers. You can include
NULL
#include <cstddef>
To have it in scope, including some other basics, like std::size_t.
std::size_t
2.1m questions
2.1m answers
60 comments
57.0k users