SDInfo example compilation failed for ESP8266

I am trying to use Micro SD card module with Wemos D1 R1. When I compile the example "sdinfo" for Arduino uno then it works as expected however, If I compile the same code on my Wemos D1 R1 then it gives this below listed error:

I tried removing Adafork SDcard library and deleting it or uninstalling arduino ide and reinstalling it again (As suggested by some posts but no go). I tried installing esp32 board and compiling its sdcard example for my ESP8266 board (suggested by one of the posts) but no go.

I have been trying to resolve this issue since last 2 weeks but no progress as compilation fails
on Wemos D1 R1 (Nodemcu) and for Arduino uno it works fine.

Error compiling for board LOLIN (WeMos) D1 R1.

In file included from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.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()
| ^~~~~
/home/pankaj/.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;
| ^~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::exists(const char*)':
/home/pankaj/.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
/home/pankaj/.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*)':
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::info64(fs::FSInfo64&)':
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::remove(const char*)':
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::mkdir(const char*)':
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::rmdir(const char*)':
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::begin()':
/home/pankaj/.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
/home/pankaj/.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);
| ^~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'uint8_t sdfs::SDFSImpl::type()':
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'uint8_t sdfs::SDFSImpl::fatType()':
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'size_t sdfs::SDFSImpl::blocksPerCluster()':
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'size_t sdfs::SDFSImpl::totalClusters()':
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'size_t sdfs::SDFSImpl::clusterSize()':
/home/pankaj/.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
/home/pankaj/.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)':
/home/pankaj/.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;
| ^~~~~
In file included from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatFile.h:34,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatVolume.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatLib.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/SdFat.h:33,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:36,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:52:19: error: expected unqualified-id before numeric constant
52 | #define O_CREAT 0x10 ///< Create file if it does not exist.
| ^~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:241:28: note: in expansion of macro 'O_CREAT'
241 | mode |= sdfat::O_CREAT;
| ^~~~~~~
In file included from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.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;
| ^~~~~
In file included from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatFile.h:34,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatVolume.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatLib.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/SdFat.h:33,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:36,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:50:19: error: expected unqualified-id before numeric constant
50 | #define O_AT_END 0X04 ///< Open at EOF.
| ^~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:244:28: note: in expansion of macro 'O_AT_END'
244 | mode |= sdfat::O_AT_END;
| ^~~~~~~~
In file included from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.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;
| ^~~~~
In file included from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatFile.h:34,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatVolume.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatLib.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/SdFat.h:33,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:36,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:53:19: error: expected unqualified-id before numeric constant
53 | #define O_TRUNC 0x20 ///< Truncate file to zero length.
| ^~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:247:28: note: in expansion of macro 'O_TRUNC'
247 | mode |= sdfat::O_TRUNC;
| ^~~~~~~
In file included from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.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;
| ^~~~~
In file included from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatFile.h:34,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatVolume.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatLib.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/SdFat.h:33,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:36,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:47:19: error: expected unqualified-id before numeric constant
47 | #define O_RDONLY 0X00 ///< Open for reading only.
| ^~~~
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:61:19: note: in expansion of macro 'O_RDONLY'
61 | #define O_READ O_RDONLY
| ^~~~~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:250:28: note: in expansion of macro 'O_READ'
250 | mode |= sdfat::O_READ;
| ^~~~~~
In file included from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.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;
| ^~~~~
In file included from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatFile.h:34,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatVolume.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatLib.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/SdFat.h:33,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:36,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:48:19: error: expected unqualified-id before numeric constant
48 | #define O_WRONLY 0X01 ///< Open for writing only.
| ^~~~
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:62:19: note: in expansion of macro 'O_WRONLY'
62 | #define O_WRITE O_WRONLY
| ^~~~~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:253:28: note: in expansion of macro 'O_WRITE'
253 | mode |= sdfat::O_WRITE;
| ^~~~~~~
In file included from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: At global scope:
/home/pankaj/.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_ptrsdfat::File32 fd, const char *name)
| ^~~~~
/home/pankaj/.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_ptrsdfat::File32 fd, const char *name)
| ^
/home/pankaj/.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_ptrsdfat::File32 fd, const char *name)
| ^~~~~
/home/pankaj/.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_ptrsdfat::File32 fd, const char *name)
| ^
/home/pankaj/.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_ptrsdfat::File32 fd, const char name)
| ^~~~~
/home/pankaj/.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_ptrsdfat::File32 fd, const char name)
| ^
/home/pankaj/.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_ptrsdfat::File32 fd, const char name)
| ^~~
/home/pankaj/.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_ptrsdfat::File32 fd, const char name)
| ^~~~~
/home/pankaj/.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_ptrsdfat::File32 fd, const char name)
| ^~~
/home/pankaj/.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_ptrsdfat::File32 _fd;
| ^~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:404:34: error: template argument 1 is invalid
404 | std::shared_ptrsdfat::File32 _fd;
| ^
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In constructor 'sdfs::SDFSFileImpl::SDFSFileImpl(sdfs::SDFSImpl
, const char
)':
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual int sdfs::SDFSFileImpl::availableForWrite()':
/home/pankaj/.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;
| ^~
/home/pankaj/.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)':
/home/pankaj/.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;
| ^~
/home/pankaj/.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)':
/home/pankaj/.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;
| ^~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual void sdfs::SDFSFileImpl::flush()':
/home/pankaj/.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();
| ^~
/home/pankaj/.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)':
/home/pankaj/.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);
| ^~
/home/pankaj/.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
| ^~
/home/pankaj/.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);
| ^~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual size_t sdfs::SDFSFileImpl::position() const':
/home/pankaj/.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;
| ^~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual size_t sdfs::SDFSFileImpl::size() const':
/home/pankaj/.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;
| ^~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::truncate(uint32_t)':
/home/pankaj/.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);
| ^~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual void sdfs::SDFSFileImpl::close()':
/home/pankaj/.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();
| ^~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::isFile() const':
/home/pankaj/.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;;
| ^~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::isDirectory() const':
/home/pankaj/.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;
| ^~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual time_t sdfs::SDFSFileImpl::getLastWrite()':
/home/pankaj/.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;
| ^~~~~
/home/pankaj/.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)) {
| ^~~
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual time_t sdfs::SDFSFileImpl::getCreationTime()':
/home/pankaj/.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;
| ^~~~~
/home/pankaj/.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)) {
| ^~~
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: At global scope:
/home/pankaj/.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_ptrsdfat::File32 dir, const char dirPath = nullptr)
| ^~~~~
/home/pankaj/.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_ptrsdfat::File32 dir, const char dirPath = nullptr)
| ^
/home/pankaj/.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_ptrsdfat::File32 dir, const char dirPath = nullptr)
| ^~~~~
/home/pankaj/.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_ptrsdfat::File32 dir, const char dirPath = nullptr)
| ^
/home/pankaj/.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_ptrsdfat::File32 dir, const char dirPath = nullptr)
| ^~~~~
/home/pankaj/.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_ptrsdfat::File32 dir, const char dirPath = nullptr)
| ^
/home/pankaj/.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_ptrsdfat::File32 dir, const char dirPath = nullptr)
| ^~~
/home/pankaj/.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_ptrsdfat::File32 dir, const char dirPath = nullptr)
| ^~~~~
/home/pankaj/.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_ptrsdfat::File32 dir, const char dirPath = nullptr)
| ^~~
/home/pankaj/.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_ptrsdfat::File32 _dir;
| ^~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:521:34: error: template argument 1 is invalid
521 | std::shared_ptrsdfat::File32 _dir;
| ^
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In constructor 'sdfs::SDFSDirImpl::SDFSDirImpl(const String&, sdfs::SDFSImpl
, const char
)':
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In destructor 'virtual sdfs::SDFSDirImpl::~SDFSDirImpl()':
/home/pankaj/.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();
| ^~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSDirImpl::next()':
/home/pankaj/.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;
| ^~~~~
/home/pankaj/.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);
| ^~~~
/home/pankaj/.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);
| ^~~
/home/pankaj/.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);
| ^~~~~
In file included from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatFile.h:34,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatVolume.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatLib.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/SdFat.h:33,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:36,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:47:19: error: expected unqualified-id before numeric constant
47 | #define O_RDONLY 0X00 ///< Open for reading only.
| ^~~~
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:61:19: note: in expansion of macro 'O_RDONLY'
61 | #define O_READ O_RDONLY
| ^~~~~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:488:46: note: in expansion of macro 'O_READ'
488 | file.openNext(_dir.get(), sdfat::O_READ);
| ^~~~~~
In file included from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.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;
| ^~~~~
/home/pankaj/.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
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSDirImpl::rewind()':
/home/pankaj/.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 /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h: At global scope:
/home/pankaj/.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
| ^~~~~
/home/pankaj/.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) {
| ^~~~~~~~~
In file included from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatFile.h:34,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatVolume.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatLib.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/SdFat.h:33,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:36,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:47:19: error: expected unqualified-id before numeric constant
47 | #define O_RDONLY 0X00 ///< Open for reading only.
| ^~~~
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:61:19: note: in expansion of macro 'O_RDONLY'
61 | #define O_READ O_RDONLY
| ^~~~~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:28:26: note: in expansion of macro 'O_READ'
28 | #define FILE_READ sdfat::O_READ
| ^~~~~~
/home/pankaj/.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) {
| ^~~~~~~~~
In file included from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.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
| ^~~~~
/home/pankaj/.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 /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatFile.h:34,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatVolume.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatLib.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/SdFat.h:33,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:36,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:47:19: error: expected unqualified-id before numeric constant
47 | #define O_RDONLY 0X00 ///< Open for reading only.
| ^~~~
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:61:19: note: in expansion of macro 'O_RDONLY'
61 | #define O_READ O_RDONLY
| ^~~~~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:28:26: note: in expansion of macro 'O_READ'
28 | #define FILE_READ sdfat::O_READ
| ^~~~~~
/home/pankaj/.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 /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h: In member function 'const char
SDClass::getMode(uint8_t)':
/home/pankaj/.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;
| ^~~~~
In file included from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatFile.h:34,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatVolume.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatLib.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/SdFat.h:33,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:36,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:47:19: error: expected unqualified-id before numeric constant
47 | #define O_RDONLY 0X00 ///< Open for reading only.
| ^~~~
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:61:19: note: in expansion of macro 'O_RDONLY'
61 | #define O_READ O_RDONLY
| ^~~~~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:162:36: note: in expansion of macro 'O_READ'
162 | bool read = (mode & sdfat::O_READ) ? true : false;
| ^~~~~~
In file included from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:162:36: error: expected ')' before numeric constant
162 | bool read = (mode & sdfat::O_READ) ? true : false;
| ~ ^
| )
/home/pankaj/.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;
| ^~~~~
In file included from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatFile.h:34,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatVolume.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatLib.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/SdFat.h:33,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:36,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:48:19: error: expected unqualified-id before numeric constant
48 | #define O_WRONLY 0X01 ///< Open for writing only.
| ^~~~
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:62:19: note: in expansion of macro 'O_WRONLY'
62 | #define O_WRITE O_WRONLY
| ^~~~~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:163:37: note: in expansion of macro 'O_WRITE'
163 | bool write = (mode & sdfat::O_WRITE) ? true : false;
| ^~~~~~~
In file included from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:163:37: error: expected ')' before numeric constant
163 | bool write = (mode & sdfat::O_WRITE) ? true : false;
| ~ ^
| )
/home/pankaj/.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;
| ^~~~~
In file included from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatFile.h:34,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatVolume.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatLib.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/SdFat.h:33,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:36,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsApiConstants.h:51:19: error: expected unqualified-id before numeric constant
51 | #define O_APPEND 0X08 ///< Set append mode.
| ^~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:164:38: note: in expansion of macro 'O_APPEND'
164 | bool append = (mode & sdfat::O_APPEND) ? true : false;
| ^~~~~~~~
In file included from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:164:38: error: expected ')' before numeric constant
164 | bool append = (mode & sdfat::O_APPEND) ? true : false;
| ~ ^
| )
In file included from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatFile.h:33,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatVolume.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/ExFatLib.h:27,
from /home/pankaj/Arduino/libraries/SdFat/src/SdFat.h:33,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SDFS/src/SDFS.h:36,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:25,
from /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/examples/listfiles/listfiles.ino:25:
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h: At global scope:
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsDateTime.h:32:27: error: redefinition of 'uint16_t FS_DATE(uint16_t, uint8_t, uint8_t)'
32 | #define FAT_DATE(y, m, d) FS_DATE(y, m, d)
| ^~~~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:187:24: note: in expansion of macro 'FAT_DATE'
187 | static inline uint16_t FAT_DATE(uint16_t year, uint8_t month, uint8_t day) {
| ^~~~~~~~
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsDateTime.h:116:24: note: 'uint16_t FS_DATE(uint16_t, uint8_t, uint8_t)' previously defined here
116 | static inline uint16_t FS_DATE(uint16_t year, uint8_t month, uint8_t day) {
| ^~~~~~~
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsDateTime.h:35:27: error: redefinition of 'uint16_t FS_TIME(uint8_t, uint8_t, uint8_t)'
35 | #define FAT_TIME(h, m, s) FS_TIME(h, m, s)
| ^~~~~~~
/home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD/src/SD.h:199:24: note: in expansion of macro 'FAT_TIME'
199 | static inline uint16_t FAT_TIME(uint8_t hour, uint8_t minute, uint8_t second) {
| ^~~~~~~~
/home/pankaj/Arduino/libraries/SdFat/src/ExFatLib/../common/FsDateTime.h:152:24: note: 'uint16_t FS_TIME(uint8_t, uint8_t, uint8_t)' previously defined here
152 | static inline uint16_t FS_TIME(uint8_t hour, uint8_t minute, uint8_t second) {
| ^~~~~~~
Multiple libraries were found for "SD.h"
Used: /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD
Not used: /home/pankaj/Arduino/libraries/SD
Multiple libraries were found for "SdFat.h"
Used: /home/pankaj/Arduino/libraries/SdFat
Not used: /home/pankaj/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/ESP8266SdFat
exit status 1
Error compiling for board LOLIN(WeMos) D1 R1.

the esp8266 bundled SD library doesn't have SDinfo example

Look here;

Where should I search for it then?

try one of the examples of the esp8266 SD library

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.