Eclipse CDT shows semantic errors, but compilation is ok

后端 未结 20 1409
青春惊慌失措
青春惊慌失措 2020-12-01 07:42

I have installed Eclipse Indigo for C/C++ Linux developers on Ubuntu 10.04 x86.

When I use common predefined macro __BASE_FILE__ Eclipse says Sym

20条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 08:25

    In my case, I eventually discovered that the indexer was having problems because a colleague had “helpfully” duplicated a whole load of declarations in two header files that were only included together in a small subset of C files in the project. Removing the duplications (and making one header include the other) allowed the indexer to function correctly again.

    It was particularly a problem with duplicated enumerations, for some reason. I do not know why this is so.

提交回复
热议问题