English 中文(简体)
剪贴自动检测包含多个编译器的剪贴自动检测和宏
原标题:Eclipse auto detect includes and macros for multiple compilers

我正在研究一个项目,该项目使用日光圈为多个不同的平台建立一个嵌入应用程序。现在,我设置了它来使用不同的构建配置来确定哪些编译器用于构建,但我很难让索引正常工作。

问题的核心在于我有些文件是平台专用的, 并且不会在其他地方编辑( 例如, 为ARM设置硬件登记器不会在 PowerPC 上工作 ) 。 建筑很简单, 因为Im 使用自定义的 Make 文件, 这样我就可以将来源从不同的建筑中排除出来。 剪贴簿索引器却不知道, 因此它试图同时将两个文件索引化, 从而造成不同编译器的默认包括定义的目录和宏在内的问题。 我找到了如何改变发现一个或另一个编辑器的发现选项, 但我无法同时找到这两个选项( 除非我手工添加每个文件, 包括目录和# define, 但是我想避免这一点 )。

是否有一种方法可以自动发现包含路径和 # 定义同一工程中两个不同的编译者 。 或者, 能否告诉 Eclipse 不尝试解析构建中未使用的文件?

最佳回答

我找到了如何操作。 在 C/ C++ General & gt; 代码分析部分中, 您可以选择要排除的某些文件/ 文件夹。 我关闭了未解决符号、 函数和类型方面的错误, 现在效果很好 。

问题回答

暂无回答




相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.

热门标签