You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TLDR
If my main.cpp has the line #include <Wire.h>, then Wire is added to the dependency graph.
If not, then a library fails to build, despite its header having this line as well.
I created a new PlatformIO project for the sparkfun_promicro16 and copied the lib_deps list from the platformio.ini of an old project.
The new project has only the boilerplate code and thus does not reference any libraries yet.
Error
Though, when I build the project, I get error messages, detailing that the file Wire.h cannot be found (fatal error: Wire.h: No such file or directory).
Workaround
If I add #include <Wire.h> to the main.cpp (although it is not used in it!), it will also be added to the Dependency Graph and building the libary will succeed.
Compiling .pio/build/sparkfun_promicro16/lib450/Adafruit BusIO/Adafruit_SPIDevice.cpp.o
In file included from .pio/libdeps/sparkfun_promicro16/Adafruit BusIO/Adafruit_BusIO_Register.h:9:0,
from .pio/libdeps/sparkfun_promicro16/Adafruit BusIO/Adafruit_BusIO_Register.cpp:1:
.pio/libdeps/sparkfun_promicro16/Adafruit BusIO/Adafruit_I2CDevice.h:5:10: fatal error: Wire.h: No such file or directory
The text was updated successfully, but these errors were encountered:
TLDR
If my
main.cpp
has the line#include <Wire.h>
, thenWire
is added to the dependency graph.If not, then a library fails to build, despite its header having this line as well.
I created a new PlatformIO project for the
sparkfun_promicro16
and copied thelib_deps
list from theplatformio.ini
of an old project.The new project has only the boilerplate code and thus does not reference any libraries yet.
Error
Though, when I build the project, I get error messages, detailing that the file
Wire.h
cannot be found (fatal error: Wire.h: No such file or directory
).Workaround
If I add
#include <Wire.h>
to themain.cpp
(although it is not used in it!), it will also be added to theDependency Graph
and building the libary will succeed.The text was updated successfully, but these errors were encountered: