No such file or directory error in my Projekt

Probably a noob problem, but I searched everywhere and tried a lot of things but it didnt work. i get this error:

src/main.cpp:2:10: fatal error: displaylog.h: No such file or directory

********************************************************************
* Looking for displaylog.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:displaylog.h"
* Web  > https://registry.platformio.org/search?q=header:displaylog.h
*
********************************************************************

 #include "displaylog.h"
          ^~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-c3-devkitm-1\src\main.cpp.o] Error 1


but it’s in the lib folder at first there were the same issues with wire.h and spi.h which is weird because they are built in… I messed a little bit around and after adding SPI and wire to the lib_deps. I only realy used Arduino IDE before. Thanks for the help!

image

There is a typo. This folder must be named “src” not “scr”

Thanks! I wouldn’t have found that myself! Sometimes the stupidest mistakes are the hardest to find…

1 Like