SdFat-beta
SdFat-beta copied to clipboard
.h files in separate directories not found
Just downloaded and tried to compile this library with Arduino IDE 1.8.13 for use with a Teensy 4.1. I get the following error message for multiple .h files, all of which are in the library's sudirectories:
C:\Users\TS1\Documents\Arduino\libraries\SdFat-beta-master\src\FsLib/FsFile.h:33:31: fatal error: ExFatLib/ExFatLib.h: No such file or directory compilation terminated. Error compiling for board Teensy 4.1.
I can patch it by editing the .h file in question (in this case src/FsLib/FsFile.h), and adding the full address of the missing file:
#include "C:\Users\TS1\Documents\Arduino\libraries\SdFat-beta-master\src\FatLib/FatLib.h"
This is the limit of my knowledge, but my interpretation is that #include ExFatLib/ExFatLib.h is not the correct method for including a .h file that's in a separate folder under the root directory.
You must name the library SdFat so the path is C:\Users\TS1\Documents\Arduino\libraries\SdFat, not C:\Users\TS1\Documents\Arduino\libraries\SdFat-beta-master.
The Arduino IDE will cause the src directory to be an include path when it reads the library.properties file.