Eclipse CDT shows semantic errors, but compilation is ok

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

    I personally agree with compostus' answer.

    It's good to solve the real problem that eclipse's code analyzer have.

    But when I try this steps: define the symbol in Project -> Properties->C/C++ General -> Paths and Symbols

    I don't find symbol tab or any place to add a symbol. what I want to do is putting macros like -DANDROID or #define ANDROID 1 to eclipse so that the code analyzer can find this definition.

    I'm under Mac OSX mountain lion.

提交回复
热议问题