Eclipse CDT的"符号NULL无法解析" [英] Eclipse CDT "Symbol NULL could not be resolved"
本文介绍了Eclipse CDT的"符号NULL无法解析"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚安装了的Eclipse
CDT
与的MinGW
。
所有设置环境变量,包括等尝试运行一个Hello World,一切似乎要被罚款。
I just installed Eclipse
CDT
with MinGW
.
All the environment variables are set, includes, etc. Tried running a hello world and everything seems to be fine.
我试图加载 C
的项目,我在我的电脑前了,它似乎加载一切都很好,但我得到了 NULL
符号:
I tried loading a C
project that I had before in my computer, it seems to load everything fine, yet I get the following error with the NULL
symbol :
Symbol 'NULL' could not be resolved
任何见解?谢谢!
Any insights? Thanks!
推荐答案
NULL通常是在STDDEF.H定义。此文件也通常包含在文件stdlib.h和stdio.h中。
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
这篇关于Eclipse CDT的"符号NULL无法解析"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文