Eclipse Juno的“预处理器包括路径,宏等” CDT的符号扫描仪 [英] Eclipse Juno's "Preprocessor Include Paths, Macros etc." symbol scanner for CDT

查看:183
本文介绍了Eclipse Juno的“预处理器包括路径,宏等” CDT的符号扫描仪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,已经对扫描仪发现进行了大修:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=290631

http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24345.html

So there has been an overhaul of the scanner discovery as worked on here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290631
http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24345.html

然而,我找不到任何有关如何使用它的信息。我最近从Helios升级到Juno,现在我有8000个语义错误和一吨未解决的包括。但是,我不知道如何使用这个新功能。我不认为还有任何文件。

However, I can't find any information on how to use it. I upgraded from Helios to Juno recently and now I have 8000 "Semantic Errors" and a ton of unresolved includes. However, I can't figure out how to use this new feature. I don't think there's any documentation yet, either.

我认为它的目的是扫描您的项目,并自动发现宏并包含目录以帮助符号解决方案和项目导航。

I think the intent is it will scan your project and automatically discover macros and include directories in order to aid in symbol resolution and project navigation.

如果我想出来,我将继续工作并更新此问题。

I'll keep working on it and update this question if I ever figure it out.

推荐答案

将其显示出来。

以此为指导: https://developer.mozilla.org/en/Eclipse_CDT

在项目属性中,C / C ++ Build ,我用build命令替换了默认的build命令。我不得不删除-s开关(静默开关),所以输出解析器可以从编译器命令中获取所有的路径和宏。使用我的makefile将构建目录指向目录。

In the project properties, "C/C++ Build", I replaced the default build command with my build command. I had to remove a -s switch (silent switch) so the output parser could grab all the paths and macros from the compiler commands. Pointed the "build directory" to the directory with my makefile.

在C / C ++常规>预处理器包含路径,宏等 >提供者我选择CDT用户设置条目和CDT GCC构建输出解析器。然后我必须更改编译器命令模式以匹配我的gcc交叉编译器。为此,我只是将gcc改为arm-elf-gcc。

Under "C/C++ General" > "Preprocessor Include Paths, Macros etc." > "Providers" I selected CDT User Setting Entries and CDT GCC Build Output Parser. I then had to change the compiler command pattern to match my gcc cross compiler. To do that, I just changed "gcc" to "arm-elf-gcc".

完整构建后(不要在第一次索引中使用多核构建),右键点击你的项目,点击'索引'和'重建'。此后,输出解析器正确填充索引,并显示在C / C ++常规>预处理器包含路径,宏等下。 >Entries

After a full build (do not use multi-core builds for the first indexing), right click your project, click 'index' and 'rebuild'. After this, the output parser populated the indexes correctly and they showed up under "C/C++ General" > "Preprocessor Include Paths, Macros etc." > "Entries"

这篇关于Eclipse Juno的“预处理器包括路径,宏等” CDT的符号扫描仪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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