Created
March 29, 2022 13:51
-
-
Save pankaj-gecko/94bc8655003d13efee81067f121359d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- <SPI> 1.0 | |
Building in release mode | |
Compiling .pio/build/d1/src/main.cpp.o | |
Generating LD script .pio/build/d1/ld/local.eagle.app.v6.common.ld | |
Compiling .pio/build/d1/lib557/SPI/SPI.cpp.o | |
Compiling .pio/build/d1/lib7ad/ESP8266SdFat/ExFatLib/ExFatDbg.cpp.o | |
Compiling .pio/build/d1/lib7ad/ESP8266SdFat/ExFatLib/ExFatFile.cpp.o | |
src/main.cpp: In function 'void setup()': | |
src/main.cpp:43:3: error: 'printDirectory' was not declared in this scope | |
43 | printDirectory(root, 0); | |
| ^~~~~~~~~~~~~~ | |
Archiving .pio/build/d1/lib557/libSPI.a | |
Indexing .pio/build/d1/lib557/libSPI.a | |
Compiling .pio/build/d1/lib7ad/ESP8266SdFat/ExFatLib/ExFatFilePrint.cpp.o | |
*** [.pio/build/d1/src/main.cpp.o] Error 1 | |
================================================================ [FAILED] Took 4.98 seconds ================================================================ | |
The terminal process "platformio 'run'" terminated with exit code: 1. | |
Terminal will be reused by tasks, press any key to close it. | |
> Executing task: platformio run < | |
Processing d1 (platform: espressif8266; board: d1; framework: arduino) | |
------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
Verbose mode can be enabled via `-v, --verbose` option | |
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1.html | |
PLATFORM: Espressif 8266 (3.2.0) > WEMOS D1 R1 | |
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash | |
PACKAGES: | |
- framework-arduinoespressif8266 3.30002.0 (3.0.2) | |
- tool-esptool 1.413.0 (4.13) | |
- tool-esptoolpy 1.30000.201119 (3.0.0) | |
- toolchain-xtensa 2.100300.210717 (10.3.0) | |
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf | |
LDF Modes: Finder ~ chain, Compatibility ~ soft | |
Found 36 compatible libraries | |
Scanning dependencies... | |
Dependency Graph | |
|-- <SdFat> 2.1.2 | |
| |-- <SPI> 1.0 | |
|-- <SD> 2.0.0 | |
| |-- <SDFS> 0.1.0 | |
| | |-- <SPI> 1.0 | |
| | |-- <SdFat> 2.1.2 | |
| | | |-- <SPI> 1.0 | |
|-- <SPI> 1.0 | |
Building in release mode | |
Compiling .pio/build/d1/src/main.cpp.o | |
Generating LD script .pio/build/d1/ld/local.eagle.app.v6.common.ld | |
Compiling .pio/build/d1/lib557/SPI/SPI.cpp.o | |
Compiling .pio/build/d1/lib7c9/SdFat/ExFatLib/ExFatDbg.cpp.o | |
Compiling .pio/build/d1/lib7c9/SdFat/ExFatLib/ExFatFile.cpp.o | |
In file included from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
.pio/libdeps/d1/SdFat/src/SdFat.h:452:2: warning: #warning File not defined because __has_include(FS.h) [-Wcpp] | |
452 | #warning File not defined because __has_include(FS.h) | |
| ^~~~~~~ | |
In file included from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:232:5: error: 'sdfat' does not name a type | |
232 | sdfat::SdFat* getFs() | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:258:5: error: 'sdfat' does not name a type | |
258 | sdfat::SdFat _fs; | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::exists(const char*)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::rename(const char*, const char*)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::info64(fs::FSInfo64&)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::remove(const char*)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::mkdir(const char*)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::rmdir(const char*)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::begin()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:159:2: error: 'sdfat' has not been declared | |
159 | sdfat::FsDateTime::setCallback(dateTimeCB); | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'uint8_t sdfs::SDFSImpl::type()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'uint8_t sdfs::SDFSImpl::fatType()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'size_t sdfs::SDFSImpl::blocksPerCluster()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'size_t sdfs::SDFSImpl::totalClusters()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'size_t sdfs::SDFSImpl::clusterSize()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In static member function 'static uint8_t sdfs::SDFSImpl::_getFlags(fs::OpenMode, fs::AccessMode)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:241:21: error: 'sdfat' has not been declared | |
241 | mode |= sdfat::O_CREAT; | |
| ^~~~~ | |
In file included from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatFile.h:34, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatVolume.h:27, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatLib.h:27, | |
from .pio/libdeps/d1/SdFat/src/SdFat.h:33, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:51:19: error: expected unqualified-id before numeric constant | |
51 | #define O_CREAT 0x10 ///< Create file if it does not exist. | |
| ^~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:244:21: error: 'sdfat' has not been declared | |
244 | mode |= sdfat::O_AT_END; | |
| ^~~~~ | |
In file included from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatFile.h:34, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatVolume.h:27, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatLib.h:27, | |
from .pio/libdeps/d1/SdFat/src/SdFat.h:33, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:49:19: error: expected unqualified-id before numeric constant | |
49 | #define O_AT_END 0X04 ///< Open at EOF. | |
| ^~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:247:21: error: 'sdfat' has not been declared | |
247 | mode |= sdfat::O_TRUNC; | |
| ^~~~~ | |
In file included from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatFile.h:34, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatVolume.h:27, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatLib.h:27, | |
from .pio/libdeps/d1/SdFat/src/SdFat.h:33, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:52:19: error: expected unqualified-id before numeric constant | |
52 | #define O_TRUNC 0x20 ///< Truncate file to zero length. | |
| ^~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:250:21: error: 'sdfat' has not been declared | |
250 | mode |= sdfat::O_READ; | |
| ^~~~~ | |
In file included from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatFile.h:34, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatVolume.h:27, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatLib.h:27, | |
from .pio/libdeps/d1/SdFat/src/SdFat.h:33, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:46:19: error: expected unqualified-id before numeric constant | |
46 | #define O_RDONLY 0X00 ///< Open for reading only. | |
| ^~~~ | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:60:19: note: in expansion of macro 'O_RDONLY' | |
60 | #define O_READ O_RDONLY | |
| ^~~~~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:253:21: error: 'sdfat' has not been declared | |
253 | mode |= sdfat::O_WRITE; | |
| ^~~~~ | |
In file included from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatFile.h:34, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatVolume.h:27, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatLib.h:27, | |
from .pio/libdeps/d1/SdFat/src/SdFat.h:33, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:47:19: error: expected unqualified-id before numeric constant | |
47 | #define O_WRONLY 0X01 ///< Open for writing only. | |
| ^~~~ | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:61:19: note: in expansion of macro 'O_WRONLY' | |
61 | #define O_WRITE O_WRONLY | |
| ^~~~~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: At global scope: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:267:32: error: invalid template-id | |
267 | SDFSFileImpl(SDFSImpl *fs, std::shared_ptr<sdfat::File32> fd, const char *name) | |
| ^~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:404:21: error: 'sdfat' was not declared in this scope | |
404 | std::shared_ptr<sdfat::File32> _fd; | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:404:34: error: template argument 1 is invalid | |
404 | std::shared_ptr<sdfat::File32> _fd; | |
| ^ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In constructor 'sdfs::SDFSFileImpl::SDFSFileImpl(sdfs::SDFSImpl*, const char*)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual int sdfs::SDFSFileImpl::availableForWrite()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:282:29: error: base operand of '->' is not a pointer | |
282 | return _opened ? _fd->availableSpaceForWrite() : 0; | |
| ^~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual size_t sdfs::SDFSFileImpl::write(const uint8_t*, size_t)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual int sdfs::SDFSFileImpl::read(uint8_t*, size_t)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual void sdfs::SDFSFileImpl::flush()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:298:16: error: base operand of '->' is not a pointer | |
298 | _fd->sync(); | |
| ^~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::seek(uint32_t, fs::SeekMode)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:309:27: error: base operand of '->' is not a pointer | |
309 | return _fd->seekSet(pos); | |
| ^~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:313:27: error: base operand of '->' is not a pointer | |
313 | return _fd->seekCur(pos); | |
| ^~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual size_t sdfs::SDFSFileImpl::position() const': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:324:29: error: base operand of '->' is not a pointer | |
324 | return _opened ? _fd->curPosition() : 0; | |
| ^~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual size_t sdfs::SDFSFileImpl::size() const': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:329:29: error: base operand of '->' is not a pointer | |
329 | return _opened ? _fd->fileSize() : 0; | |
| ^~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::truncate(uint32_t)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:338:19: error: base operand of '->' is not a pointer | |
338 | return _fd->truncate(size); | |
| ^~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual void sdfs::SDFSFileImpl::close()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:344:16: error: base operand of '->' is not a pointer | |
344 | _fd->close(); | |
| ^~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::isFile() const': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:372:29: error: base operand of '->' is not a pointer | |
372 | return _opened ? _fd->isFile() : false;; | |
| ^~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::isDirectory() const': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:377:29: error: base operand of '->' is not a pointer | |
377 | return _opened ? _fd->isDir() : false; | |
| ^~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual time_t sdfs::SDFSFileImpl::getLastWrite()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:383:13: error: 'sdfat' has not been declared | |
383 | sdfat::DirFat_t tmp; | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual time_t sdfs::SDFSFileImpl::getCreationTime()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:394:13: error: 'sdfat' has not been declared | |
394 | sdfat::DirFat_t tmp; | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: At global scope: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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) | |
| ^~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:521:21: error: 'sdfat' was not declared in this scope | |
521 | std::shared_ptr<sdfat::File32> _dir; | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:521:34: error: template argument 1 is invalid | |
521 | std::shared_ptr<sdfat::File32> _dir; | |
| ^ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In constructor 'sdfs::SDFSDirImpl::SDFSDirImpl(const String&, sdfs::SDFSImpl*, const char*)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In destructor 'virtual sdfs::SDFSDirImpl::~SDFSDirImpl()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:423:13: error: base operand of '->' is not a pointer | |
423 | _dir->close(); | |
| ^~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSDirImpl::next()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:487:13: error: 'sdfat' has not been declared | |
487 | sdfat::File32 file; | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/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 .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatFile.h:34, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatVolume.h:27, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatLib.h:27, | |
from .pio/libdeps/d1/SdFat/src/SdFat.h:33, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:46:19: error: expected unqualified-id before numeric constant | |
46 | #define O_RDONLY 0X00 ///< Open for reading only. | |
| ^~~~ | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:60:19: note: in expansion of macro 'O_RDONLY' | |
60 | #define O_READ O_RDONLY | |
| ^~~~~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:494:17: error: 'sdfat' has not been declared | |
494 | sdfat::DirFat_t tmp; | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h: In member function 'virtual bool sdfs::SDFSDirImpl::rewind()': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:514:13: error: base operand of '->' is not a pointer | |
514 | _dir->rewind(); | |
| ^~ | |
In file included from src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h: At global scope: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:28:19: error: 'sdfat' has not been declared | |
28 | #define FILE_READ sdfat::O_READ | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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 .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatFile.h:34, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatVolume.h:27, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatLib.h:27, | |
from .pio/libdeps/d1/SdFat/src/SdFat.h:33, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:46:19: error: expected unqualified-id before numeric constant | |
46 | #define O_RDONLY 0X00 ///< Open for reading only. | |
| ^~~~ | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:60:19: note: in expansion of macro 'O_RDONLY' | |
60 | #define O_READ O_RDONLY | |
| ^~~~~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:28:26: note: in expansion of macro 'O_READ' | |
28 | #define FILE_READ sdfat::O_READ | |
| ^~~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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 src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:28:19: error: 'sdfat' has not been declared | |
28 | #define FILE_READ sdfat::O_READ | |
| ^~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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 .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatFile.h:34, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatVolume.h:27, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatLib.h:27, | |
from .pio/libdeps/d1/SdFat/src/SdFat.h:33, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:46:19: error: expected unqualified-id before numeric constant | |
46 | #define O_RDONLY 0X00 ///< Open for reading only. | |
| ^~~~ | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:60:19: note: in expansion of macro 'O_RDONLY' | |
60 | #define O_READ O_RDONLY | |
| ^~~~~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:28:26: note: in expansion of macro 'O_READ' | |
28 | #define FILE_READ sdfat::O_READ | |
| ^~~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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 src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h: In member function 'const char* SDClass::getMode(uint8_t)': | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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 .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatFile.h:34, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatVolume.h:27, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatLib.h:27, | |
from .pio/libdeps/d1/SdFat/src/SdFat.h:33, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:46:19: error: expected unqualified-id before numeric constant | |
46 | #define O_RDONLY 0X00 ///< Open for reading only. | |
| ^~~~ | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:60:19: note: in expansion of macro 'O_RDONLY' | |
60 | #define O_READ O_RDONLY | |
| ^~~~~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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 src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:162:36: error: expected ')' before numeric constant | |
162 | bool read = (mode & sdfat::O_READ) ? true : false; | |
| ~ ^ | |
| ) | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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 .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatFile.h:34, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatVolume.h:27, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatLib.h:27, | |
from .pio/libdeps/d1/SdFat/src/SdFat.h:33, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:47:19: error: expected unqualified-id before numeric constant | |
47 | #define O_WRONLY 0X01 ///< Open for writing only. | |
| ^~~~ | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:61:19: note: in expansion of macro 'O_WRONLY' | |
61 | #define O_WRITE O_WRONLY | |
| ^~~~~~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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 src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:163:37: error: expected ')' before numeric constant | |
163 | bool write = (mode & sdfat::O_WRITE) ? true : false; | |
| ~ ^ | |
| ) | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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 .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatFile.h:34, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatVolume.h:27, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatLib.h:27, | |
from .pio/libdeps/d1/SdFat/src/SdFat.h:33, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
.pio/libdeps/d1/SdFat/src/ExFatLib/../common/FsApiConstants.h:50:19: error: expected unqualified-id before numeric constant | |
50 | #define O_APPEND 0X08 ///< Set append mode. | |
| ^~~~ | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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 src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/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 .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatFile.h:33, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatVolume.h:27, | |
from .pio/libdeps/d1/SdFat/src/ExFatLib/ExFatLib.h:27, | |
from .pio/libdeps/d1/SdFat/src/SdFat.h:33, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/SDFS.h:36, | |
from /home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h:25, | |
from src/main.cpp:25: | |
/home/pankaj/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/SD.h: At global scope: | |
.pio/libdeps/d1/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/.platformio/packages/framework-arduinoespressif8266/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) { | |
| ^~~~~~~~ | |
.pio/libdeps/d1/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) { | |
| ^~~~~~~ | |
.pio/libdeps/d1/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/.platformio/packages/framework-arduinoespressif8266/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) { | |
| ^~~~~~~~ | |
.pio/libdeps/d1/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) { | |
| ^~~~~~~ | |
src/main.cpp: In function 'void setup()': | |
src/main.cpp:43:3: error: 'printDirectory' was not declared in this scope | |
43 | printDirectory(root, 0); | |
| ^~~~~~~~~~~~~~ | |
*** [.pio/build/d1/src/main.cpp.o] Error 1 | |
================================================================ [FAILED] Took 3.61 seconds ================================================================ | |
The terminal process "platformio 'run'" terminated with exit code: 1. | |
Terminal will be reused by tasks, press any key to close it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment