Eclipse CDT shows semantic errors, but compilation is ok

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

    If on Ubuntu, go to Window > Preferences > In Search box type "Indexer" > Select Indexer in left column. Under heading "Indexer Options" tick the following options (all but those involving the skipping of files):

    • Index files source files not included in project
    • Index unused Headers Index all header variants
    • Index source and header files openend in editor
    • Allow heuristic resolution of includes

    Under heading "Indexing Strategy" tick both options which are:

    • Automatically update the index
    • Update index immediately after every file-save

    Under heading "Build Configuration for the indexer" select the following option:

    • User active build configuration

提交回复
热议问题