Eclipse CDT索引器在系统更新后丢失 [英] Eclipse CDT indexer lost after system update
问题描述
我正在Ubuntu上使用Eclipse进行C ++开发.从Ubuntu 11.04更新到Ubuntu 11.10之后,Eclipse indexer不再能够找到我的C/C ++系统头文件,并且使我烦恼,在整个编辑器视图中都填充了小错误符号,每一行都带有#include
或符号,但是没有认识.
I am using Eclipse on Ubuntu for C++ development. After updating from Ubuntu 11.04 to Ubuntu 11.10, Eclipse indexer no longer is able to find my C/C++ system headers and annoys me filling the whole editor view with small bugs symbols, one for every line with an #include
or symbol it does not recognizes.
下载并解压缩全新的Eclipse CDT软件包将无法解决问题.创建Hello World示例项目也不会解决该问题.我尝试将所有系统路径手动添加到索引器配置,并且部分解决了该特定项目的问题,但是仅对标准C头文件和已安装的库进行了索引(即,我无法使其与标准C ++头文件一起使用iostream
).
Downloading and unpacking a brand new Eclipse CDT package will not solve the problem. Creating the Hello World sample project will not solve it either. I have tried to add by hand all system paths to the indexer configurations, and it partially solved the problem to that specific project, but only standard C headers and installed libraries were indexed (i.e. I was unable to make it work with standard C++ headers like iostream
).
我相信我的系统中一定隐藏着一些配置,弄乱了Eclipse的索引器...
I believe there must be some configuration hidden in my system messing with Eclipse's indexer...
如何创建新的Hello World项目时,特别是在处理现有项目时,如何使Eclipse具有其旧的行为,自动查找系统标头?
How can I make Eclipse to have its old behavior, automatically finding system headers when I create a new Hello World project, and specially, when working on my existing projects?
推荐答案
Found the problem explanation in Eclipse CDT forum: http://www.eclipse.org/forums/index.php/t/247954/
要在本地为项目求解,请打开项目属性"窗口,在"C/C ++构建"→环境"下添加新变量: -名称:LC_ALL -值:C
To solve it locally for a project, open the project "Properties" window, under "C/C++ Build"→"Environment" add a new variable: - Name: LC_ALL - Value: C
这将使编译器以英语发布其消息.
This will make the compiler to issue its messages in English.
这篇关于Eclipse CDT索引器在系统更新后丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!