刷新eclipse cdt系统包括 [英] refresh eclipse cdt system includes

查看:61
本文介绍了刷新eclipse cdt系统包括的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ecipse cdt开发c ++程序。问题是我将所有工作区和Eclipse软件包都从turbolinux移到了centos linux。这就引起了一个问题,那就是系统包含不同,但是蚀没有刷新包含路径。并且所有的std容器类都无法解决。

I'm using ecipse cdt developing c++ program. A problem is I moved all my workspace and eclipse package from turbolinux to centos linux. Then it cause a problem, that is system includes are different, but eclipse didn't refresh the include paths. And all the std container classes can not be solved.

有人知道如何解决此问题吗?

Anyone know how to fix this problem?

推荐答案

我最近被这个人咬了(实际上是来这个网站寻找答案的;-)所以我会分享我的发现:

I was recently bitten by this one myself (actually came to this site in search of an answer ;-) so I'll share what I found:

(这些步骤反映了Eclipse Indigo SR1)

(these steps reflect Eclipse Indigo SR1)

首先,仔细检查一下Eclipse仍然反映了旧的包含路径:

First, double-check that Eclipse still reflects the old include paths:


  • project-> properties-> C / C ++ General-> Paths and Symbols-> GNU C ++

接下来,清除旧路径:


  • 项目->属性-> C / C ++构建->发现选项-> GCC C ++编译器

  • project -> properties -> C/C++ Build -> Discovery Options -> GCC C++ Compiler

单击立即清除发现的条目按钮

click the button for "Clear discovered entries now"

重建您的项目,以便Eclipse选择新的包含路径

Rebuild your project, such that Eclipse picks up on the new include paths

确认已设置新的包含路径:

Confirm that the new include paths are set:


  • project-> properties-> C / C ++ General->路径和符号-> GNU C ++

这篇关于刷新eclipse cdt系统包括的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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