Eclipse does not see header files
Posted: Mon Feb 24, 2020 9:20 am
When I compile a project it compiles OK.
But if I add a header file
#include "driver/i2c.h"
I get - Unresolved inclusion.
If I add the header file in hello_world_main.c - it's OK.
But if I crate a new C file and add the header file in the new file - I get an error - Unresolved inclusion.
How can I fix the issue?
Well...If I add the new files to CMakeLists.txt it becomes visible to libraries. Seems like it fixes the problem.
Some of the includes is not visible any way
#include "bt.h"
#include "bta_api.h"
#include "esp_gap_ble_api.h"
#include "esp_gatts_api.h"
#include "esp_bt_defs.h"
#include "esp_bt_main.h"
not visible when I want to use BLE features.
But if I add a header file
#include "driver/i2c.h"
I get - Unresolved inclusion.
If I add the header file in hello_world_main.c - it's OK.
But if I crate a new C file and add the header file in the new file - I get an error - Unresolved inclusion.
How can I fix the issue?
Well...If I add the new files to CMakeLists.txt it becomes visible to libraries. Seems like it fixes the problem.
Some of the includes is not visible any way
#include "bt.h"
#include "bta_api.h"
#include "esp_gap_ble_api.h"
#include "esp_gatts_api.h"
#include "esp_bt_defs.h"
#include "esp_bt_main.h"
not visible when I want to use BLE features.