Eclipse CDT “Symbol NULL could not be resolved”
2016-11-20 15:26
911 查看
在ubuntu里装的eclipse C/C++版,交叉编译程序时,总是提示Symbol NULL could not be resolved、Symbol size_t could not be resolved
有说在文件头部加防卫声明的
这个方法试了,有效。但每个文件都得加,文件多了就麻烦了。
有说添加头文件#include“stdio.h”的,但文件里面本身就加了#include“stdio.h”,所以不行
最后有说是JDK版本的问题,把JDK8换成7就行了,亲测有效!
参考:
c - Eclipse CDT "Symbol NULL could not be resolved" - Stack Overflow
有说在文件头部加防卫声明的
#ifndef NULL #define NULL ((void *) 0) #endif
这个方法试了,有效。但每个文件都得加,文件多了就麻烦了。
有说添加头文件#include“stdio.h”的,但文件里面本身就加了#include“stdio.h”,所以不行
最后有说是JDK版本的问题,把JDK8换成7就行了,亲测有效!
参考:
c - Eclipse CDT "Symbol NULL could not be resolved" - Stack Overflow
相关文章推荐
- 解决Eclipse交叉编译环境下出现Symbol"NULL" could not be resolved
- eclipse CDT cygwin下出现大量Symbol could not be resolved的解决方法
- 【已解决】NDK下Eclipse中交叉编译C项目出错:Symbol ‘NULL’ could not be resolved(JNI)
- win7+eclipse+CDT+cygwin symbol could not be resolved
- eclipse cdt indigo: symbol could not be resolved fixed
- 解决Eclipse中C++代码显示Symbol 'std' could not be resolved的问题
- 解决Eclipse中C++代码显示Symbol 'std' could not be resolved的问题
- Eclipse错误提示: Symbol 'xxxx' could not be resolved
- 工具-Eclipse+symbol ‘vector ’could not be resolved
- 解决Eclipse中C++代码显示Symbol 'std' could not be resolved的问题
- eclipse出现Symbol could not be resolved解决方案
- Eclipse编写C++出现Symbol 'std' could not be resolved错误提示
- Eclipse错误提示: Symbol 'xxxx' could not be resolved
- mac eclipse EDT C++以及symbol 'std' could not be resolved问题的解决
- Linux Eclipse CDT C++提示 Type 'string' could not be resolved或Type 'std' could not be resolved
- Eclipse: symbol '???' could not be resolved [duplicate]
- eclipse c++ 环境搭建遇到Symbol 'cout' could not be resolved
- linux eclipse 下 Symbol 'std’could not be resolved 问题的解决
- Eclipse编写C++出现Symbol 'std' could not be resolved错误提示的解决方案
- eclipse : Type Symbol 'xxx' could not be resolved 解决办法