[英]how to set or replace a file on project explorer on gnu arm eclipse or cdt?
[英]Strange include path in Eclipse CDT + GNU ARM
修改了某些项目设置(即更改FPU类型)后,其中包含一些奇怪的条目,例如:
项目/#undef __ARM_NEON
这些在可以指定包含的任何常规位置都没有显示(C / C ++生成->设置->工具设置->编译器xy->包含。
这个明显无效的包含路径在“问题”选项卡上创建了令人讨厌的警告消息。
有时,对FPU设置进行更多修改会使这些条目消失,或导致出现更多类似的条目,但是我在这里看不到任何逻辑行为。 这是错误吗?
请参阅: 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>
好的,找到了它:workspace / .metadata / .plugins / org.eclipse.cdt.core / {NAME_OF_PROJECT} .language.settings.xml
但是我比删除它更喜欢删除它,下次我打开eclipse并建立一切都OK
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.