Eclipse CDT shows semantic errors, but compilation is ok

后端 未结 20 1445
青春惊慌失措
青春惊慌失措 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:09

    Not sure if this addresses your specific problem, but I also had semantic errors. They just came out of the blue after having a working project.

    Anyway, I fixed it with a single option in workspace settings by setting: "Build configuration for indexer: Use active build configuration"

    The other option was "Use the build configuration specified in the project's indexer settings" and this is the one that wasn't working. I think it may have been corrupted after an eclipse crash.

提交回复
热议问题