Hello,
I’m using PlatformIO with VSCode on Manjaro Linux, and am having an issue I don’t understand.
When Building the project, my local libraries (in “lib”) are not seen anymore (the triggers a “No such file in directory”).
Step 1:
main.cpp begins with:
#include <EEPROMManager.h>
#include <TimeManager.h>
#include <ScheduleManager.h>
#include <WiFiManager.h>
Build: OK
Step 2:
main.cpp begins with:
#include <EEPROMManager.h>
#include <TimeManager.h>
#include <ScheduleManager.h>
#include <WiFiManager.h>
#include <WebManager.h>
WebManager.h begins with:
#include <Arduino.h>
#include <WebServer.h>
#include <TimeManager.h>
Build: KO
In file included from lib/ScheduleManager/ScheduleManager.h:2:0,
from lib/ScheduleManager/ScheduleManager.cpp:2:
lib/TimeManager/TimeManager.h:2:21: fatal error: WiFiUdp.h: No such file or directory
I’m at a loss here. Why does including TimeManager.h in main.cpp works perfectly, but it doesn’t work if I import it in WebManager.h?
I don’t know if it’s a bug, or if I just misunderstand how including works.
Thanks in advance!