espressif / esp-idf-template

Template application for https://github.com/espressif/esp-idf
Other
335 stars 201 forks source link

Symbol & variable can not be resolved in ESP-IDF template #12

Open zhouypau opened 5 years ago

zhouypau commented 5 years ago

There is no errors s1 to build ESP-idf template in eclipse, Ubuntu BUT some symbols and variables in main() can not be resolved with warning sign.

includes are all good with no error and waning sign

include "freertos"/FreeRTOS.h"

include "esp_wifi.h"

include "esp_system.h"

include "esp_event.h"

include "esp_event_loop.h"

include "nvs_flash.h"

include "drive/gpio.h"

dheerajdake commented 5 years ago

I too have the same problem. I'm able to build and run examples but the indexer settings are not right. How to configure the indexer settings?

How to see what's in the header files? I need to look at driver/gpio.h using eclipse.

dheerajdake commented 5 years ago

@zhouypau Did you check this? https://github.com/espressif/esp-idf/issues/17

You need to manually add the paths for GNU C as mentioned in the above link. This worked for me.

zhouypau commented 5 years ago

thanks, yes I have manually add the paths in eclipse/project' property/ GNU C , The error mark before the #include are gone, but they still stay in main().

dheerajdake commented 5 years ago

If you have added the paths for all the needed header files, you won't be seeing any error marks in main(). They will disappear too.