简体   繁体   English

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

[英]Strange include path in Eclipse CDT + GNU ARM

After tinkering with some project settings, namely changing the FPU type, some strange entries appeared in the includes, eg.: 修改了某些项目设置(即更改FPU类型)后,其中包含一些奇怪的条目,例如:

project/#undef __ARM_NEON 项目/#undef __ARM_NEON

These are not shown at any of the usual places where includes can be specified (C/C++ build -> Settings -> tool settings -> compiler xy -> Includes. 这些在可以指定包含的任何常规位置都没有显示(C / C ++生成->设置->工具设置->编译器xy->包含。

This obviously invalid include path creates an annoying warning message at the "problems" tab. 这个明显无效的包含路径在“问题”选项卡上创建了令人讨厌的警告消息。

Sometimes tinkering more with the FPU settings will make these entries disappear, or cause more similar entries to appear, but I could not see any logical behavior here. 有时,对FPU设置进行更多修改会使这些条目消失,或导致出现更多类似的条目,但是我在这里看不到任何逻辑行为。 Is this a bug? 这是错误吗?

Screenshot 截图

Please see: http://blog.bachi.net/?m=201409 for the solution. 请参阅: http : //blog.bachi.net/?m=201409以获得解决方案。

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

Remove: 去掉:

<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>

Add: 加:

<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>

Ok found it: workspace/.metadata/.plugins/org.eclipse.cdt.core/{NAME_OF_PROJECT}.language.settings.xml 好的,找到了它:workspace / .metadata / .plugins / org.eclipse.cdt.core / {NAME_OF_PROJECT} .language.settings.xml

but I prefer to delete it than touch and next time I open eclipse and build all went OK 但是我比删除它更喜欢删除它,下次我打开eclipse并建立一切都OK

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM