Eclipse CDT “Symbol NULL could not be resolved”

后端 未结 13 1814
北荒
北荒 2020-12-06 04:32

I just installed Eclipse CDT with MinGW. All the environment variables are set, includes, etc. Tried running a hello world and everyth

相关标签:
13条回答
  • 2020-12-06 04:58

    NULL is usually defined in stddef.h. This file is also usually included with stdlib.h and stdio.h.

    And, you could always do this:

    #ifndef NULL
    #define NULL   ((void *) 0)
    #endif
    
    0 讨论(0)
提交回复
热议问题