[英]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.