I am porting my main application over to Workbench. In doing the first local compile I am hitting some problems not seen with cloud compile on Web IDE that related to the SDFat library. I would appreciate any advice/help about how to understand and fix these 4 errors. The first 3 appear to be something to do with “Arduino.h” header which is included.
/Users/xxx/Documents/xxx/VSC_Projects/z-t-base/lib/SdFat/src/FatLib/FatLibConfig.h:139:0, ./inc/Arduino.h:22:2: error: #error isnan is not defined please ensure this header is included before any STL headers #error isnan is not defined please ensure this header is included before any STL headers
/inc/Arduino.h:203:1: error: expected ';' before 'using' using std::isinf ^ ./inc/Arduino.h:240:1: error: expected ';' before 'typedef' typedef USARTSerial HardwareSerial;
/Users/xxx/Documents/xyz/VSC_Projects/z-t-base/lib/SdFat/src/SdCard/SdInfo.h:112:34: error: 'F_CPU' was not declared in this scope #define SPI_HALF_SPEED SD_SCK_HZ(F_CPU/4)
I have set the SDFat library version to be 0.0.7 whereas it appears to have installed 1.0.16 which is the latest and has these problems.