I work with the Arduino framework. I need to use EEPROM.h. It is located in:
My code is made of three files:
main.cpp lib/EEPROMManager/EEPROMManager.cpp lib/EEPROMManager/EEPROMManager.h
They all #include <EEPROM.h>. When I build:
lib/EEPROMManager/EEPROMManager.h:2:20: fatal error: EEPROM.h: No such file or directory
When I remove #include <EEPROM.h> from EEPROMManager.h, the build works.
In EEPROMManager.h, if I now include the full path:
The build works.
In short, as soon as EEPROMManager.h includes EEPROM.h, the build fails. I do not understand why.
I checked c_cpp_properties.json, EEPROM.h is included.
It look like only header files (.h) can’t find EEPROM.h.