Eclipse 3.7.0 Indigo with CDT shows many false compilation errors

前端 未结 8 1637
予麋鹿
予麋鹿 2020-12-14 18:27

I have updated my Ubuntu box to 11.10 and then Eclipse also have been updated to 3.7.0 Indigo with CDT 8.0.1

Then the following problem occurs:

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-14 18:53

    The problem is that there are a bunch of include directories that are missing from the indexer's perspective.

    Adding the following worked for me, but may depend on your particular setup where they actually exist:

    /usr/include/c++/4.6.1
    /usr/include/                
    /usr/include/c++             
    /usr/include/c++/4.6         
    /usr/include/x86_64-linux-gnu
    /usr/include/asm-generic
    /usr/include/c++/4.6.1/x86_64-linux-gnu/
    

    They can be set in Project>Properties>C++ Include Paths

    Presumably, in the future, the platform specializations for the CDT will included these automatically. I recall reading that somewhere, but cannot provide a reference.

提交回复
热议问题