Eclipse Juno with CDT Doesn't Add Built-in Include Directories

前端 未结 2 1053
星月不相逢
星月不相逢 2021-02-13 07:27

Since I upgraded from Eclipse Indigo to Juno (on Ubuntu 12.04), I\'ve been having the problem where it shows \"unresolved inclusion\" errors for standard libraries (e.g. next to

相关标签:
2条回答
  • 2021-02-13 08:07

    Please

    • Open the Eclipse Preferences dialog (Windows | Preferences).
    • Open C++ | Build | Settings.
    • Open the Discovery tab.
    • Select the built-in compiler settings entry.
    • Press the Clear Entries button.

    Afterwards eclipse should request the defaults again from the compiler.

    On Arch Linux I had to do this after each GCC version change, because in that case the locations for the defaults changed as the version is encoded in the folder name, and eclipse does not notice this.

    0 讨论(0)
  • 2021-02-13 08:11

    FWIW:

    I found that after importing a project from another computer, I was not getting any thing showing up under the "Includes" section of my project in the Project Explorer. To fix this, I needed to delete the folder /workspace/project/.settings/. For me it only had one file (language.settings.xml).

    Then everything was back to normal.

    0 讨论(0)
提交回复
热议问题