Eclipse CDT C ++ NULL未解决 [英] Eclipse CDT C++ NULL not resolved

查看:70
本文介绍了Eclipse CDT C ++ NULL未解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

相关: Eclipse CDT无法解析符号NULL

我的印象是 NULL 是C ++中的标准宏,不需要任何要包含的标题。另一方面,Eclipse认为它不存在。

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.

是否有某种方法可以提醒Eclipse我处于C ++模式而不是此文件的C模式,

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?

推荐答案


我当时的印象是NULL是

I was under the impression that NULL was a standard macro in C++.

是的,但这不是语言的一部分。您仍然需要包括< cstddef> < cstdlib> 等。

It is, but it's not part of the language. You still need to include <cstddef> or <cstdlib>, etc.

这篇关于Eclipse CDT C ++ NULL未解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆