eclipse - Eclipse CDT + GNU ARM 中的奇怪包含路径

标签 eclipse arm gnu

修改一些项目设置(即更改 FPU 类型)后,包含中出现了一些奇怪的条目,例如:

project/#undef __ARM_NEON

这些不会显示在任何可以指定包含的常用位置(C/C++ 构建 -> 设置 -> 工具设置 -> 编译器 xy -> 包含。

这个明显无效的包含路径会在“问题”选项卡上创建一条烦人的警告消息。

有时,对 FPU 设置进行更多修改会使这些条目消失,或导致出现更多类似的条目,但我在这里看不到任何逻辑行为。这是一个错误吗?

Screenshot

最佳答案

请参阅:http://blog.bachi.net/?m=201409寻求解决方案。

workspace.metadata.pluginsorg.eclipse.cdt.coreROME2_P1_A2.language.settings.xml

删除:

<entry kind="includePath" name="/${ProjName}/#undef __ARM_FP">
    <flag value="BUILTIN|READONLY|VALUE_WORKSPACE_PATH"/>
</entry>
<entry kind="includePath" name="/${ProjName}/#undef __ARM_FEATURE_FMA">
    <flag value="BUILTIN|READONLY|VALUE_WORKSPACE_PATH"/>
</entry>
<entry kind="includePath" name="/${ProjName}/#undef __ARM_NEON__">
    <flag value="BUILTIN|READONLY|VALUE_WORKSPACE_PATH"/>
</entry>
<entry kind="includePath" name="/${ProjName}/#undef __ARM_NEON">
    <flag value="BUILTIN|READONLY|VALUE_WORKSPACE_PATH"/>
</entry>

添加:

<language id="org.eclipse.cdt.core.g++">
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/arm-none-eabi/include/c++/6.3.1">
        <flag value="BUILTIN|READONLY"/>
    </entry>
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/arm-none-eabi/include/c++/6.3.1/arm-none-eabi/thumb/v8-m.main">
        <flag value="BUILTIN|READONLY"/>
    </entry>
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/arm-none-eabi/include/c++/6.3.1/backward">
        <flag value="BUILTIN|READONLY"/>
    </entry>
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/lib/gcc/arm-none-eabi/6.3.1/include">
        <flag value="BUILTIN|READONLY"/>
    </entry>
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/lib/gcc/arm-none-eabi/6.3.1/include-fixed">
        <flag value="BUILTIN|READONLY"/>
    </entry>
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/arm-none-eabi/include">
        <flag value="BUILTIN|READONLY"/>
    </entry>
</language>

关于eclipse - Eclipse CDT + GNU ARM 中的奇怪包含路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42098200/

相关文章:

java - BigInteger -> byte[] -> BigInteger。看起来相等但 if 语句失败

assembly - 模拟 ARM 汇编环境?

objective-c - iOS 设备上的 "optimize"类型有意义吗?

linux - chmod 的官方文档在哪里?

c++ - 代码块显示错误 : This file requires support for the ISO C++ 2011 standard

eclipse - Eclipse::制作Apple App

eclipse - DSL、DSLR、DRL之间的区别流口水

linux - 在 Linux 构建服务器上从 Windows 中的 Eclipse 构建

assembly - arm64缓存可以从EL0刷新吗?

gnu - 在检查节标题时,readelf 显示的列的含义是什么?