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

前端 未结 2 1056
星月不相逢
星月不相逢 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.

提交回复
热议问题