`
445822357
  • 浏览: 744128 次
文章分类
社区版块
存档分类
最新评论

eclipse error: * could not be resolved

阅读更多

转自:http://lihaichuan.blog.51cto.com/498079/1060466

打开Eclipse后,编辑c/c++,编译时出错:* could not be resolved ,但运行结果正确。解决办法:

在eclipse上,project->properties->C/C++ General->indexer,将大部分选项都选中,如下图所示:

假如都按照图片上的选项都选上了还是不行,则假如你的工程为C++工程,则Index unused headers as C++ files 选中,Index unused headers as C files 就别选中了,反之为C工程,则Index unused headers as C++ files不选,

然后,退出eclipse,重新打开即可


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics