【问题标题】:Deleting project Include paths from Eclipse/SystemWorkbench project?删除项目包含来自 Eclipse/SystemWorkbench 项目的路径?
【发布时间】:2021-09-02 13:39:35
【问题描述】:

我正在尝试使用 SystemWorkbench,基于 Eclipse,在添加然后删除路径之后

  • ($project)/Properties/C/C++ Build/Settings/Tool Settings/MCU GCC Compiler/Includes(现在为空)
  • ($project)/Properties/C/C++ General/Paths and Symbols/Includes/Languages (GNU C)/Include 目录(现在为空)

...该项目现在显示这三个包括:

...此外,在构建期间,这些相同的包含是通过 -I 添加的,不幸的是它们显然是错误的,所以我想删除它们。我无法从 GUI 执行此操作(至少不能通过右键单击),并且上述 GUI 中的包含路径设置为空。

那么,如何删除这些包含路径,以便设置新路径?

【问题讨论】:

    标签: eclipse include-path


    【解决方案1】:

    貌似.cproject文件中,下面还有<listOptionValue builtIn= ...类型的挂节点:

                                <tool id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.1529590206" name="MCU GCC Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.602008433">
                                    <option id="gnu.c.compiler.option.include.paths.1440641627" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
    
    

                                <tool id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.1831817711" name="MCU GCC Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.1529590206">
                                    <option id="gnu.c.compiler.option.include.paths.696630378" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
    

    关闭 System Workbench,从 .cproject 文件中删除那些挂起的节点并保存,重新启动 System Workbench - 是的,现在屏幕截图中的整个 Includes 节点都消失了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-06-14
      • 1970-01-01
      • 1970-01-01
      • 2014-05-21
      • 1970-01-01
      • 1970-01-01
      • 2014-11-11
      相关资源
      最近更新 更多