ESP8266 with SD card failing compilation

Running Arduino 1.8.13 on Win10(64).
Compiling for LOLIN(WEMOS) D1 Mini Pro

Sketch will compile for Arduino Uno, but not for any ESP8266 board
I'm quite sure I have tested the SDWebServer.ino earlier.
All my ESP8266 libraryfiles are 3.0.2

I have taken the ESPWebServer/SDWebServer.ino at master · esp8266/ESPWebServer · GitHub

and stripped it down to these few lines:

#include <SPI.h>
#include <SD.h>

File uploadFile;

void setup(void) {
  Serial.begin(115200);
  Serial.print("\n");
  if (SD.begin(SS)) {
    Serial.println("SD Card initialized.");
  }
}

void loop(void) {
}


Error messages:
Arduino: 1.8.13 (Windows 10), Board: "LOLIN(WEMOS) D1 mini Pro, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 16MB (FS:14MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"


In file included from C:\Myprogs\Arduino\Source\libraries\SdFat/iostream.h:27,
                 from C:\Myprogs\Arduino\Source\libraries\SdFat/SdStream.h:27,
                 from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFat.h:36,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:36,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:25,
                 from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Myprogs\Arduino\Source\libraries\SdFat/ostream.h: In member function 'ostream& ostream::operator<<(long int)':
C:\Myprogs\Arduino\Source\libraries\SdFat/ostream.h:178:15: error: call of overloaded 'putNum(long int&)' is ambiguous
  178 |     putNum(arg);
      |               ^

C:\Myprogs\Arduino\Source\libraries\SdFat/ostream.h:282:8: note: candidate: 'void ostream::putNum(uint32_t, bool)'
  282 |   void putNum(uint32_t n, bool neg = false);
      |        ^~~~~~

C:\Myprogs\Arduino\Source\libraries\SdFat/ostream.h:283:8: note: candidate: 'void ostream::putNum(int32_t)'
  283 |   void putNum(int32_t n);
      |        ^~~~~~

C:\Myprogs\Arduino\Source\libraries\SdFat/ostream.h: In member function 'ostream& ostream::operator<<(long unsigned int)':
C:\Myprogs\Arduino\Source\libraries\SdFat/ostream.h:186:15: error: call of overloaded 'putNum(long unsigned int&)' is ambiguous
  186 |     putNum(arg);
      |               ^

C:\Myprogs\Arduino\Source\libraries\SdFat/ostream.h:282:8: note: candidate: 'void ostream::putNum(uint32_t, bool)'
  282 |   void putNum(uint32_t n, bool neg = false);
      |        ^~~~~~

C:\Myprogs\Arduino\Source\libraries\SdFat/ostream.h:283:8: note: candidate: 'void ostream::putNum(int32_t)'
  283 |   void putNum(int32_t n);
      |        ^~~~~~

In file included from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:25,
                 from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: At global scope:
C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:50:50: error: 'SD_SCK_MHZ' was not declared in this scope

   50 |     SDFSConfig(uint8_t csPin = 4, uint32_t spi = SD_SCK_MHZ(10)) : FSConfig(FSId, false), _csPin(csPin), _part(0), _spiSettings(spi)  { }
      |                                                  ^~~~~~~~~~

In file included from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:25,
                 from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:232:5: error: 'sdfat' does not name a type
  232 |     sdfat::SdFat* getFs()
      |     ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:258:5: error: 'sdfat' does not name a type
  258 |     sdfat::SdFat _fs;
      |     ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::exists(const char*)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:85:27: error: '_fs' was not declared in this scope; did you mean 'fs'?
   85 |         return _mounted ? _fs.exists(path) : false;
      |                           ^~~
      |                           fs

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::rename(const char*, const char*)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:91:27: error: '_fs' was not declared in this scope; did you mean 'fs'?
   91 |         return _mounted ? _fs.rename(pathFrom, pathTo) : false;
      |                           ^~~
      |                           fs

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::info64(fs::FSInfo64&)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:100:26: error: '_fs' was not declared in this scope; did you mean 'fs'?
  100 |         info.blockSize = _fs.vol()->sectorsPerCluster() * _fs.vol()->bytesPerSector();
      |                          ^~~
      |                          fs

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::remove(const char*)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:129:27: error: '_fs' was not declared in this scope; did you mean 'fs'?
  129 |         return _mounted ? _fs.remove(path) : false;
      |                           ^~~
      |                           fs

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::mkdir(const char*)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:133:27: error: '_fs' was not declared in this scope; did you mean 'fs'?
  133 |         return _mounted ? _fs.mkdir(path) : false;
      |                           ^~~
      |                           fs

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::rmdir(const char*)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:137:26: error: '_fs' was not declared in this scope; did you mean 'fs'?
  137 |         return _mounted ?_fs.rmdir(path) : false;
      |                          ^~~
      |                          fs

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::begin()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:154:20: error: '_fs' was not declared in this scope; did you mean 'fs'?
  154 |         _mounted = _fs.begin(_cfg._csPin, _cfg._spiSettings);
      |                    ^~~
      |                    fs

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:159:2: error: 'sdfat' has not been declared
  159 |  sdfat::FsDateTime::setCallback(dateTimeCB);
      |  ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'uint8_t sdfs::SDFSImpl::type()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:173:16: error: '_fs' was not declared in this scope; did you mean 'fs'?
  173 |         return _fs.card()->type();
      |                ^~~
      |                fs

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'uint8_t sdfs::SDFSImpl::fatType()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:176:16: error: '_fs' was not declared in this scope; did you mean 'fs'?
  176 |         return _fs.vol()->fatType();
      |                ^~~
      |                fs

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'size_t sdfs::SDFSImpl::blocksPerCluster()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:179:16: error: '_fs' was not declared in this scope; did you mean 'fs'?
  179 |         return _fs.vol()->sectorsPerCluster();
      |                ^~~
      |                fs

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'size_t sdfs::SDFSImpl::totalClusters()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:182:16: error: '_fs' was not declared in this scope; did you mean 'fs'?
  182 |         return _fs.vol()->clusterCount();
      |                ^~~
      |                fs

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'size_t sdfs::SDFSImpl::clusterSize()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:188:37: error: '_fs' was not declared in this scope; did you mean 'fs'?
  188 |         return blocksPerCluster() * _fs.vol()->bytesPerSector();
      |                                     ^~~
      |                                     fs

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In static member function 'static uint8_t sdfs::SDFSImpl::_getFlags(fs::OpenMode, fs::AccessMode)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:241:21: error: 'sdfat' has not been declared
  241 |             mode |= sdfat::O_CREAT;
      |                     ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:244:21: error: 'sdfat' has not been declared
  244 |             mode |= sdfat::O_AT_END;
      |                     ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:247:21: error: 'sdfat' has not been declared
  247 |             mode |= sdfat::O_TRUNC;
      |                     ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:250:21: error: 'sdfat' has not been declared
  250 |             mode |= sdfat::O_READ;
      |                     ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:253:21: error: 'sdfat' has not been declared
  253 |             mode |= sdfat::O_WRITE;
      |                     ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: At global scope:

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:267:48: error: 'sdfat' was not declared in this scope
  267 |     SDFSFileImpl(SDFSImpl *fs, std::shared_ptr<sdfat::File32> fd, const char *name)
      |                                                ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:267:61: error: template argument 1 is invalid
  267 |     SDFSFileImpl(SDFSImpl *fs, std::shared_ptr<sdfat::File32> fd, const char *name)
      |                                                             ^

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:267:48: error: 'sdfat' was not declared in this scope
  267 |     SDFSFileImpl(SDFSImpl *fs, std::shared_ptr<sdfat::File32> fd, const char *name)
      |                                                ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:267:61: error: template argument 1 is invalid
  267 |     SDFSFileImpl(SDFSImpl *fs, std::shared_ptr<sdfat::File32> fd, const char *name)
      |                                                             ^

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:267:48: error: 'sdfat' was not declared in this scope
  267 |     SDFSFileImpl(SDFSImpl *fs, std::shared_ptr<sdfat::File32> fd, const char *name)
      |                                                ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:267:61: error: template argument 1 is invalid
  267 |     SDFSFileImpl(SDFSImpl *fs, std::shared_ptr<sdfat::File32> fd, const char *name)
      |                                                             ^

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:267:32: error: invalid template-id
  267 |     SDFSFileImpl(SDFSImpl *fs, std::shared_ptr<sdfat::File32> fd, const char *name)
      |                                ^~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:267:48: error: 'sdfat' has not been declared
  267 |     SDFSFileImpl(SDFSImpl *fs, std::shared_ptr<sdfat::File32> fd, const char *name)
      |                                                ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:267:32: error: 'auto' parameter not permitted in this context
  267 |     SDFSFileImpl(SDFSImpl *fs, std::shared_ptr<sdfat::File32> fd, const char *name)
      |                                ^~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:404:21: error: 'sdfat' was not declared in this scope
  404 |     std::shared_ptr<sdfat::File32>  _fd;
     |                     ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:404:34: error: template argument 1 is invalid
  404 |     std::shared_ptr<sdfat::File32>  _fd;
      |                                  ^

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In constructor 'sdfs::SDFSFileImpl::SDFSFileImpl(sdfs::SDFSImpl*, const char*)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:268:24: error: 'fd' was not declared in this scope; did you mean '_fd'?
  268 |         : _fs(fs), _fd(fd), _opened(true)
      |                        ^~
      |                        _fd

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual int sdfs::SDFSFileImpl::availableForWrite()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:282:29: error: base operand of '->' is not a pointer
  282 |         return _opened ? _fd->availableSpaceForWrite() : 0;
      |                             ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual size_t sdfs::SDFSFileImpl::write(const uint8_t*, size_t)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:287:29: error: base operand of '->' is not a pointer
  287 |         return _opened ? _fd->write(buf, size) : -1;
      |                             ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual int sdfs::SDFSFileImpl::read(uint8_t*, size_t)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:292:29: error: base operand of '->' is not a pointer
  292 |         return _opened ? _fd->read(buf, size) : -1;
      |                             ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual void sdfs::SDFSFileImpl::flush()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:298:16: error: base operand of '->' is not a pointer
  298 |             _fd->sync();
      |                ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::seek(uint32_t, fs::SeekMode)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:309:27: error: base operand of '->' is not a pointer
  309 |                 return _fd->seekSet(pos);
      |                           ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:311:27: error: base operand of '->' is not a pointer
  311 |                 return _fd->seekEnd(-pos); // TODO again, odd from POSIX
      |                           ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:313:27: error: base operand of '->' is not a pointer
  313 |                 return _fd->seekCur(pos);
      |                           ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual size_t sdfs::SDFSFileImpl::position() const':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:324:29: error: base operand of '->' is not a pointer
  324 |         return _opened ? _fd->curPosition() : 0;
      |                             ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual size_t sdfs::SDFSFileImpl::size() const':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:329:29: error: base operand of '->' is not a pointer
  329 |         return _opened ? _fd->fileSize() : 0;
      |                             ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::truncate(uint32_t)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:338:19: error: base operand of '->' is not a pointer
  338 |         return _fd->truncate(size);
      |                   ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual void sdfs::SDFSFileImpl::close()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:344:16: error: base operand of '->' is not a pointer
  344 |             _fd->close();
      |                ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::isFile() const':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:372:29: error: base operand of '->' is not a pointer
  372 |         return _opened ? _fd->isFile() : false;;
      |                             ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::isDirectory() const':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:377:29: error: base operand of '->' is not a pointer
  377 |         return _opened ? _fd->isDir() : false;
      |                             ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual time_t sdfs::SDFSFileImpl::getLastWrite()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:383:13: error: 'sdfat' has not been declared
  383 |             sdfat::DirFat_t tmp;
      |             ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:384:21: error: request for member 'get' in '((sdfs::SDFSFileImpl*)this)->sdfs::SDFSFileImpl::_fd', which is of non-class type 'int'
  384 |             if (_fd.get()->dirEntry(&tmp)) {
      |                     ^~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:384:38: error: 'tmp' was not declared in this scope; did you mean 'tm'?
  384 |             if (_fd.get()->dirEntry(&tmp)) {
      |                                      ^~~
      |                                      tm

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual time_t sdfs::SDFSFileImpl::getCreationTime()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:394:13: error: 'sdfat' has not been declared
  394 |             sdfat::DirFat_t tmp;
      |             ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:395:21: error: request for member 'get' in '((sdfs::SDFSFileImpl*)this)->sdfs::SDFSFileImpl::_fd', which is of non-class type 'int'
  395 |             if (_fd.get()->dirEntry(&tmp)) {
      |                     ^~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:395:38: error: 'tmp' was not declared in this scope; did you mean 'tm'?
  395 |             if (_fd.get()->dirEntry(&tmp)) {
      |                                      ^~~
      |                                      tm

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: At global scope:

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:412:70: error: 'sdfat' was not declared in this scope
  412 |     SDFSDirImpl(const String& pattern, SDFSImpl* fs, std::shared_ptr<sdfat::File32> dir, const char *dirPath = nullptr)
      |                                                                      ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:412:83: error: template argument 1 is invalid
  412 |     SDFSDirImpl(const String& pattern, SDFSImpl* fs, std::shared_ptr<sdfat::File32> dir, const char *dirPath = nullptr)
      |                                                                                   ^

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:412:70: error: 'sdfat' was not declared in this scope
  412 |     SDFSDirImpl(const String& pattern, SDFSImpl* fs, std::shared_ptr<sdfat::File32> dir, const char *dirPath = nullptr)
      |                                                                      ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:412:83: error: template argument 1 is invalid
  412 |     SDFSDirImpl(const String& pattern, SDFSImpl* fs, std::shared_ptr<sdfat::File32> dir, const char *dirPath = nullptr)
      |                                                                                   ^

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:412:70: error: 'sdfat' was not declared in this scope
  412 |     SDFSDirImpl(const String& pattern, SDFSImpl* fs, std::shared_ptr<sdfat::File32> dir, const char *dirPath = nullptr)
      |                                                                      ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:412:83: error: template argument 1 is invalid
  412 |     SDFSDirImpl(const String& pattern, SDFSImpl* fs, std::shared_ptr<sdfat::File32> dir, const char *dirPath = nullptr)
      |                                                                                   ^

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:412:54: error: invalid template-id
  412 |     SDFSDirImpl(const String& pattern, SDFSImpl* fs, std::shared_ptr<sdfat::File32> dir, const char *dirPath = nullptr)
      |                                                      ^~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:412:70: error: 'sdfat' has not been declared
  412 |     SDFSDirImpl(const String& pattern, SDFSImpl* fs, std::shared_ptr<sdfat::File32> dir, const char *dirPath = nullptr)
      |                                                                      ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:412:54: error: 'auto' parameter not permitted in this context
  412 |     SDFSDirImpl(const String& pattern, SDFSImpl* fs, std::shared_ptr<sdfat::File32> dir, const char *dirPath = nullptr)
      |                                                      ^~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:521:21: error: 'sdfat' was not declared in this scope
  521 |     std::shared_ptr<sdfat::File32> _dir;
      |                     ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:521:34: error: template argument 1 is invalid
  521 |     std::shared_ptr<sdfat::File32> _dir;
      |                                  ^

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In constructor 'sdfs::SDFSDirImpl::SDFSDirImpl(const String&, sdfs::SDFSImpl*, const char*)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:413:44: error: 'dir' was not declared in this scope; did you mean '_dir'?
  413 |         : _pattern(pattern), _fs(fs), _dir(dir), _valid(false), _dirPath(nullptr)
      |                                            ^~~
      |                                            _dir

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In destructor 'virtual sdfs::SDFSDirImpl::~SDFSDirImpl()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:423:13: error: base operand of '->' is not a pointer
  423 |         _dir->close();
      |             ^~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSDirImpl::next()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:487:13: error: 'sdfat' has not been declared
  487 |             sdfat::File32 file;
      |             ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:488:13: error: 'file' was not declared in this scope
  488 |             file.openNext(_dir.get(), sdfat::O_READ);
      |             ^~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:488:32: error: request for member 'get' in '((sdfs::SDFSDirImpl*)this)->sdfs::SDFSDirImpl::_dir', which is of non-class type 'int'
  488 |             file.openNext(_dir.get(), sdfat::O_READ);
      |                                ^~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:488:39: error: 'sdfat' has not been declared
  488 |             file.openNext(_dir.get(), sdfat::O_READ);
      |                                       ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:494:17: error: 'sdfat' has not been declared
  494 |                 sdfat::DirFat_t tmp;
      |                 ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:495:36: error: 'tmp' was not declared in this scope; did you mean 'tm'?
  495 |                 if (file.dirEntry(&tmp)) {
      |                                    ^~~
      |                                    tm

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSDirImpl::rewind()':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:514:13: error: base operand of '->' is not a pointer
  514 |         _dir->rewind();
      |             ^~

In file included from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h: At global scope:

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:28:19: error: 'sdfat' has not been declared
   28 | #define FILE_READ sdfat::O_READ
      |                   ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:47:52: note: in expansion of macro 'FILE_READ'
   47 |     File open(const char *filename, uint8_t mode = FILE_READ) {
      |                                                    ^~~~~~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:28:19: error: 'sdfat' has not been declared
   28 | #define FILE_READ sdfat::O_READ
      |                   ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:55:54: note: in expansion of macro 'FILE_READ'
   55 |     File open(const String &filename, uint8_t mode = FILE_READ) {
      |                                                      ^~~~~~~~~

In file included from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h: In member function 'const char* SDClass::getMode(uint8_t)':

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:162:29: error: 'sdfat' has not been declared
  162 |         bool read = (mode & sdfat::O_READ) ? true : false;
      |                             ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:163:30: error: 'sdfat' has not been declared
  163 |         bool write = (mode & sdfat::O_WRITE) ? true : false;
      |                              ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:164:31: error: 'sdfat' has not been declared
  164 |         bool append = (mode & sdfat::O_APPEND) ? true : false;
      |                               ^~~~~

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h: At global scope:

C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:187:24: error: redefinition of 'uint16_t FAT_DATE(uint16_t, uint8_t, uint8_t)'
  187 | static inline uint16_t FAT_DATE(uint16_t year, uint8_t month, uint8_t day) {
      |                        ^~~~~~~~

In file included from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFile.h:24,
                 from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFat.h:35,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:36,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:25,
                 from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:

C:\Myprogs\Arduino\Source\libraries\SdFat/SdBaseFile.h:131:24: note: 'uint16_t FAT_DATE(uint16_t, uint8_t, uint8_t)' previously defined here
  131 | static inline uint16_t FAT_DATE(uint16_t year, uint8_t month, uint8_t day) {
      |                        ^~~~~~~~

In file included from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:190:24: error: redefinition of 'uint16_t FAT_YEAR(uint16_t)'
  190 | static inline uint16_t FAT_YEAR(uint16_t fatDate) {
      |                        ^~~~~~~~

In file included from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFile.h:24,
                 from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFat.h:35,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:36,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:25,
                 from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Myprogs\Arduino\Source\libraries\SdFat/SdBaseFile.h:139:24: note: 'uint16_t FAT_YEAR(uint16_t)' previously defined here
  139 | static inline uint16_t FAT_YEAR(uint16_t fatDate) {
      |                        ^~~~~~~~

In file included from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:193:23: error: redefinition of 'uint8_t FAT_MONTH(uint16_t)'
  193 | static inline uint8_t FAT_MONTH(uint16_t fatDate) {
      |                       ^~~~~~~~~

In file included from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFile.h:24,
                 from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFat.h:35,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:36,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:25,
                 from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Myprogs\Arduino\Source\libraries\SdFat/SdBaseFile.h:147:23: note: 'uint8_t FAT_MONTH(uint16_t)' previously defined here
  147 | static inline uint8_t FAT_MONTH(uint16_t fatDate) {
      |                       ^~~~~~~~~

In file included from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:196:23: error: redefinition of 'uint8_t FAT_DAY(uint16_t)'
  196 | static inline uint8_t FAT_DAY(uint16_t fatDate) {
      |                       ^~~~~~~

In file included from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFile.h:24,
                 from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFat.h:35,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:36,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:25,
                 from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:

C:\Myprogs\Arduino\Source\libraries\SdFat/SdBaseFile.h:155:23: note: 'uint8_t FAT_DAY(uint16_t)' previously defined here
  155 | static inline uint8_t FAT_DAY(uint16_t fatDate) {
      |                       ^~~~~~~

In file included from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:199:24: error: redefinition of 'uint16_t FAT_TIME(uint8_t, uint8_t, uint8_t)'
  199 | static inline uint16_t FAT_TIME(uint8_t hour, uint8_t minute, uint8_t second) {
      |                        ^~~~~~~~

In file included from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFile.h:24,
                 from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFat.h:35,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:36,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:25,
                 from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Myprogs\Arduino\Source\libraries\SdFat/SdBaseFile.h:165:24: note: 'uint16_t FAT_TIME(uint8_t, uint8_t, uint8_t)' previously defined here
  165 | static inline uint16_t FAT_TIME(uint8_t hour, uint8_t minute, uint8_t second) {
      |                        ^~~~~~~~

In file included from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:202:23: error: redefinition of 'uint8_t FAT_HOUR(uint16_t)'
  202 | static inline uint8_t FAT_HOUR(uint16_t fatTime) {
      |                       ^~~~~~~~

In file included from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFile.h:24,
                 from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFat.h:35,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:36,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:25,
                 from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Myprogs\Arduino\Source\libraries\SdFat/SdBaseFile.h:173:23: note: 'uint8_t FAT_HOUR(uint16_t)' previously defined here
  173 | static inline uint8_t FAT_HOUR(uint16_t fatTime) {
      |                       ^~~~~~~~

In file included from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:205:23: error: redefinition of 'uint8_t FAT_MINUTE(uint16_t)'
  205 | static inline uint8_t FAT_MINUTE(uint16_t fatTime) {
      |                       ^~~~~~~~~~

In file included from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFile.h:24,
                 from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFat.h:35,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:36,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:25,
                 from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Myprogs\Arduino\Source\libraries\SdFat/SdBaseFile.h:181:23: note: 'uint8_t FAT_MINUTE(uint16_t)' previously defined here
  181 | static inline uint8_t FAT_MINUTE(uint16_t fatTime) {
      |                       ^~~~~~~~~~

In file included from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:208:23: error: redefinition of 'uint8_t FAT_SECOND(uint16_t)'
  208 | static inline uint8_t FAT_SECOND(uint16_t fatTime) {
      |                       ^~~~~~~~~~

In file included from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFile.h:24,
                 from C:\Myprogs\Arduino\Source\libraries\SdFat/SdFat.h:35,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SDFS\src/SDFS.h:36,
                 from C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD\src/SD.h:25,
                 from C:\Myprogs\Arduino\Source\ESP8266\Testb\Testb.ino:3:
C:\Myprogs\Arduino\Source\libraries\SdFat/SdBaseFile.h:191:23: note: 'uint8_t FAT_SECOND(uint16_t)' previously defined here
  191 | static inline uint8_t FAT_SECOND(uint16_t fatTime) {
      |                       ^~~~~~~~~~

Multiple libraries were found for "SD.h"

 Used: C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD

 Not used: C:\Program Files (x86)\Arduino\libraries\SD

 Not used: C:\Myprogs\Arduino\Source\libraries\SD

Multiple libraries were found for "SdFat.h"

 Used: C:\Myprogs\Arduino\Source\libraries\SdFat

 Not used: C:\Users\Flemming\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266SdFat

exit status 1

Error compiling for board LOLIN(WEMOS) D1 mini Pro.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

it is a problem of IDE version 1.8.13

Tanks Juray

Is it only a problem with 1.8.13?
Or is it still a problem in the following 1.8.14, 1.8.15 and 1.8.16-.
I don't want to start with 2.0.0 yet.

I uninstalled all my 1.8.13 (Revo uninstaller
Renamed Arduino15
Installed 1.8.16
-- But still same problem.
I took a close look at the verbose output, and in the end, the three lines above 'exit status 1'
I wondered - Why did it take SdFat.h from the ordinary Arduino libray in stead off the
SdFat.h in ESP8266SdFat in the ESP8266 package?
I moved the 'ordinary' SdFat.h and SdFat.cpp away from the 'ordinary' folder.
Now I could compile and access the SD Card (read/write/print dir and file content).
I took a look at the verbose output, and now it was as I expected.

Now I have to test my other sketches for AVR controllers who are using #include <SdFat.h>

I will continue with 1.8.16 and don't want to test 1.8.14 and 1.8.15