error: ‘NULL’ was not declared in this scope

后端 未结 6 1976
暗喜
暗喜 2020-12-04 09:42

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 w

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 10:45

    NULL is not a keyword. It's an identifier defined in some standard headers. You can include

    #include 
    

    To have it in scope, including some other basics, like std::size_t.

提交回复
热议问题