1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

B4R Question [SOLVED]Error on compilation...

Discussion in 'B4R Questions' started by rbghongade, Jul 12, 2019.

  1. rbghongade

    rbghongade Active Member Licensed User

    Dear friends,
    I have upgraded to B4R 2.80, also ESP8266 sdk 2.5.2 and ESP32 1.02.
    I am getting this error log:
    Compiles ok with the earlier version:
    Code:
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:27:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/ArduinoFiles.h:
    122:7: error: redefinition of 'class fs::File'
     class File : public FatFile, public Stream {
           ^
    In file included from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:24:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\cores\esp8266/FS.h:51:7: error: previous definition of 'class fs::File'
     class File : public Stream
           ^
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:28:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFileSystem.h: 
    In member function 'fs::File FatFileSystem::open(const char*, oflag_t)':
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFileSystem.h:91:13: error: 'class fs::File' has no member named 'open'
         tmpFile.open(vwd(), path, oflag);
                 ^
    In file included from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:25:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: At global scope:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:190:5: error: 'sdfat' does not name a type
         sdfat::SdFat* getFs()
         ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:215:5: error: 'sdfat' does not name a type
         sdfat::SdFat _fs;
         ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::exists(const char*)':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:98:27: error: '_fs' was not declared in this scope
             return _mounted ? _fs.exists(path) : false;
                               ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::rename(const char*, const char*)':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:104:27: error: '_fs' was not declared in this scope
             return _mounted ? _fs.rename(pathFrom, pathTo) : false;
                               ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::info(fs::FSInfo&)':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:113:26: error: '_fs' was not declared in this scope
             info.blockSize = _fs.vol()->blocksPerCluster() * 512;
                              ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::remove(const char*)':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:122:27: error: '_fs' was not declared in this scope
             return _mounted ? _fs.remove(path) : false;
                               ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::mkdir(const char*)':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:126:27: error: '_fs' was not declared in this scope
             return _mounted ? _fs.mkdir(path) : false;
                               ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::rmdir(const char*)':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:130:26: error: '_fs' was not declared in this scope
             return _mounted ?_fs.rmdir(path) : false;
                              ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSImpl::begin()':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:147:20: error: '_fs' was not declared in this scope
             _mounted = _fs.begin(_cfg._csPin, _cfg._spiSettings);
                        ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'uint8_t sdfs::SDFSImpl::type()':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:165:16: error: '_fs' was not declared in this scope
             return _fs.card()->type();
                    ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'uint8_t sdfs::SDFSImpl::fatType()':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:168:16: error: '_fs' was not declared in this scope
             return _fs.vol()->fatType();
                    ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'size_t sdfs::SDFSImpl::blocksPerCluster()':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:171:16: error: '_fs' was not declared in this scope
             return _fs.vol()->blocksPerCluster();
                    ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'size_t sdfs::SDFSImpl::totalClusters()':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:174:16: error: '_fs' was not declared in this scope
             return _fs.vol()->clusterCount();
                    ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In static member function 'static uint8_t sdfs::SDFSImpl::_getFlags(fs::OpenMode, fs::AccessMode)':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:198:21: error: 'sdfat' has not been declared
                 mode |= sdfat::O_CREAT;
                         ^
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:36:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/ArduinoFiles.h:
    33,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:
    27,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    52:19: error: expected unqualified-id before numeric constant
     
    #define O_CREAT   0x10  ///< Create file if it does not exist.
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:198:28: note: in expansion of macro 'O_CREAT'
                 mode |= sdfat::O_CREAT;
                                ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    52:19: error: expected ';' before numeric constant
     #define O_CREAT   0x10  ///< Create file if it does not exist.
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:198:28: note: in expansion of macro 'O_CREAT'
                 mode |= sdfat::O_CREAT;
                                ^
    In file included from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:25:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:201:21: error: 'sdfat' has not been declared
                 mode |= sdfat::O_AT_END;
                         ^
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:36:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/ArduinoFiles.h:
    33,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:
    27,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    50:19: error: expected unqualified-id before numeric constant
     
    #define O_AT_END  0X04  ///< Open at EOF.
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:201:28: note: in expansion of macro 'O_AT_END'
                 mode |= sdfat::O_AT_END;
                                ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    50:19: error: expected ';' before numeric constant
     #define O_AT_END  0X04  ///< Open at EOF.
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:201:28: note: in expansion of macro 'O_AT_END'
                 mode |= sdfat::O_AT_END;
                                ^
    In file included from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:25:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:204:21: error: 'sdfat' has not been declared
                 mode |= sdfat::O_TRUNC;
                         ^
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:36:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/ArduinoFiles.h:
    33,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:
    27,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    53:19: error: expected unqualified-id before numeric constant
     
    #define O_TRUNC   0x20  ///< Truncate file to zero length.
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:204:28: note: in expansion of macro 'O_TRUNC'
                 mode |= sdfat::O_TRUNC;
                                ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    53:19: error: expected ';' before numeric constant
     #define O_TRUNC   0x20  ///< Truncate file to zero length.
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:204:28: note: in expansion of macro 'O_TRUNC'
                 mode |= sdfat::O_TRUNC;
                                ^
    In file included from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:25:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:207:21: error: 'sdfat' has not been declared
                 mode |= sdfat::O_READ;
                         ^
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:36:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/ArduinoFiles.h:
    33,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:
    27,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    47:19: error: expected unqualified-id before numeric constant
     
    #define O_RDONLY  0X00  ///< Open for reading only.
                       ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    61:19: note: in expansion of macro 'O_RDONLY'
     #define O_READ    O_RDONLY
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:207:28: note: in expansion of macro 'O_READ'
                 mode |= sdfat::O_READ;
                                ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    47:19: error: expected ';' before numeric constant
     #define O_RDONLY  0X00  ///< Open for reading only.
                       ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    61:19: note: in expansion of macro 'O_RDONLY'
     #define O_READ    O_RDONLY
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:207:28: note: in expansion of macro 'O_READ'
                 mode |= sdfat::O_READ;
                                ^
    In file included from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:25:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:210:21: error: 'sdfat' has not been declared
                 mode |= sdfat::O_WRITE;
                         ^
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:36:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/ArduinoFiles.h:
    33,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:
    27,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    48:19: error: expected unqualified-id before numeric constant
     
    #define O_WRONLY  0X01  ///< Open for writing only.
                       ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    62:19: note: in expansion of macro 'O_WRONLY'
     #define O_WRITE   O_WRONLY
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:210:28: note: in expansion of macro 'O_WRITE'
                 mode |= sdfat::O_WRITE;
                                ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    48:19: error: expected ';' before numeric constant
     #define O_WRONLY  0X01  ///< Open for writing only.
                       ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    62:19: note: in expansion of macro 'O_WRONLY'
     #define O_WRITE   O_WRONLY
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:210:28: note: in expansion of macro 'O_WRITE'
                 mode |= sdfat::O_WRITE;
                                ^
    In file included from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:25:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: At global scope:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:224:48: error: 'sdfat' was not declared in this scope
         SDFSFileImpl(SDFSImpl *fs, std::shared_ptr<sdfat::File> fd, const char *name)
                                                    ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:224:59: error: template argument 1 is invalid
         SDFSFileImpl(SDFSImpl *fs, std::shared_ptr<sdfat::
    File> fd, const char *name)
                                                               ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:336:21: error: 'sdfat' was not declared in this scope
         std::shared_ptr<sdfat::File>  _fd;
                         ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:336:32: error: template argument 1 is invalid
         std::shared_ptr<sdfat::
    File>  _fd;
                                    ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual size_t sdfs::SDFSFileImpl::write(const uint8_t*, size_t)':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:239:29: error: base operand of '->' is not a pointer
             return _opened ? _fd->write(buf, size) : -1;
                                 ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual size_t sdfs::SDFSFileImpl::read(uint8_t*, size_t)':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:244:29: error: base operand of '->' is not a pointer
             return _opened ? _fd->read(buf, size) : -1;
                                 ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual void sdfs::SDFSFileImpl::flush()':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:250:16: error: base operand of '->' is not a pointer
                 _fd->flush();
                    ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:251:16: error: base operand of '->' is not a pointer
                 _fd->sync();
                    ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::seek(uint32_t, fs::SeekMode)':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:262:27: error: base operand of '->' is not a pointer
                     return _fd->seekSet(pos);
                               ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:264:27: error: base operand of '->' is not a pointer
                     return _fd->seekEnd(-pos); // TODO again, odd from POSIX
                               ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:266:27: error: base operand of '->' is not a pointer
                     return _fd->seekCur(pos);
                               ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual size_t sdfs::SDFSFileImpl::position() const':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:277:29: error: base operand of '->' is not a pointer
             return _opened ? _fd->curPosition() : 0;
                                 ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual size_t sdfs::SDFSFileImpl::size() const':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:282:29: error: base operand of '->' is not a pointer
             return _opened ? _fd->fileSize() : 0;
                                 ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::truncate(uint32_t)':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:291:19: error: base operand of '->' is not a pointer
             return _fd->truncate(size);
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual void sdfs::SDFSFileImpl::close()':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:297:16: error: base operand of '->' is not a pointer
                 _fd->close();
                    ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::isFile() const':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:325:29: error: base operand of '->' is not a pointer
             return _opened ? _fd->isFile() : false;;
                                 ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSFileImpl::isDirectory() const':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:330:29: error: base operand of '->' is not a pointer
             return _opened ? _fd->isDirectory() : false;
                                 ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: At global scope:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:344:70: error: 'sdfat' was not declared in this scope
         SDFSDirImpl(const String& pattern, SDFSImpl* fs, std::shared_ptr<sdfat::File> dir, const char *dirPath = nullptr)
                                                                          ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:344:81: error: template argument 1 is invalid
         SDFSDirImpl(
    const String& pattern, SDFSImpl* fs, std::shared_ptr<sdfat::File> dir, const char *dirPath = nullptr)
                                                                                     ^
    In file included from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:25:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:427:21: error: 'sdfat' was not declared in this scope
         std::shared_ptr<sdfat::File> _dir;
                         ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:427:32: error: template argument 1 is invalid
         std::shared_ptr<sdfat::
    File> _dir;
                                    ^
    In file included from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:25:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In destructor 'virtual sdfs::SDFSDirImpl::~SDFSDirImpl()':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:355:13: error: base operand of '->' is not a pointer
             _dir->close();
                 ^
    In file included from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:25:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSDirImpl::next()':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:401:13: error: 'sdfat' has not been declared
                 sdfat::File file;
                 ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:401:25: error: expected ';' before 'file'
                 sdfat::File file;
                             ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:402:13: error: 'file' was not declared in this scope
                 file.openNext(_dir.get(), sdfat::O_READ);
                 ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:402:32: error: request for member 'get' in '((sdfs::SDFSDirImpl*)this)->sdfs::SDFSDirImpl::_dir', which is of non-class type 'int'
                 file.openNext(_dir.get(), sdfat::O_READ);
                                    ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:402:39: error: 'sdfat' has not been declared
                 file.openNext(_dir.get(), sdfat::O_READ);
                                           ^
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:36:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/ArduinoFiles.h:
    33,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:
    27,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    47:19: error: expected unqualified-id before numeric constant
     
    #define O_RDONLY  0X00  ///< Open for reading only.
                       ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    61:19: note: in expansion of macro 'O_RDONLY'
     #define O_READ    O_RDONLY
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:402:46: note: in expansion of macro 'O_READ'
                 file.openNext(_dir.get(), sdfat::O_READ);
                                                  ^
    In file included from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:25:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h: In member function 'virtual bool sdfs::SDFSDirImpl::rewind()':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS\src/SDFS.h:420:13: error: base operand of '->' is not a pointer
             _dir->rewind();
                 ^
    In file included from D:\DEVELO~1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h: At global scope:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:28:19: error: 'sdfat' has not been declared
     #define FILE_READ sdfat::O_READ
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:46:52: note: in expansion of macro 'FILE_READ'
         File open(const char *filename, uint8_t mode = FILE_READ) {
                                                        ^
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:36:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/ArduinoFiles.h:
    33,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:
    27,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    47:19: error: expected unqualified-id before numeric constant
     
    #define O_RDONLY  0X00  ///< Open for reading only.
                       ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    61:19: note: in expansion of macro 'O_RDONLY'
     #define O_READ    O_RDONLY
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:28:26: note: in expansion of macro 'O_READ'
     #define FILE_READ sdfat::O_READ
                              ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:46:52: note: in expansion of macro 'FILE_READ'
         File open(const char *filename, uint8_t mode = FILE_READ) {
                                                        ^
    In file included from D:\DEVELO~1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:28:19: error: 'sdfat' has not been declared
     #define FILE_READ sdfat::O_READ
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:50:54: note: in expansion of macro 'FILE_READ'
         File open(const String &filename, uint8_t mode = FILE_READ) {
                                                          ^
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:36:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/ArduinoFiles.h:
    33,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:
    27,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    47:19: error: expected unqualified-id before numeric constant
     
    #define O_RDONLY  0X00  ///< Open for reading only.
                       ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    61:19: note: in expansion of macro 'O_RDONLY'
     #define O_READ    O_RDONLY
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:28:26: note: in expansion of macro 'O_READ'
     #define FILE_READ sdfat::O_READ
                              ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:50:54: note: in expansion of macro 'FILE_READ'
         File open(const String &filename, uint8_t mode = FILE_READ) {
                                                          ^
    In file included from D:\DEVELO~1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h: In member function 'const char* SDClass::getMode(uint8_t)':
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:134:29: error: 'sdfat' has not been declared
             bool read = (mode & sdfat::O_READ) ? true : false;
                                 ^
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:36:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/ArduinoFiles.h:
    33,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:
    27,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    47:19: error: expected unqualified-id before numeric constant
     
    #define O_RDONLY  0X00  ///< Open for reading only.
                       ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    61:19: note: in expansion of macro 'O_RDONLY'
     #define O_READ    O_RDONLY
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:134:36: note: in expansion of macro 'O_READ'
             bool read = (mode & sdfat::O_READ) ? true : false;
                                        ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    47:19: error: expected ')' before numeric constant
     #define O_RDONLY  0X00  ///< Open for reading only.
                       ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    61:19: note: in expansion of macro 'O_RDONLY'
     #define O_READ    O_RDONLY
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:134:36: note: in expansion of macro 'O_READ'
             bool read = (mode & sdfat::O_READ) ? true : false;
                                        ^
    In file included from D:\DEVELO~1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:135:30: error: 'sdfat' has not been declared
             bool write = (mode & sdfat::O_WRITE) ? true : false;
                                  ^
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:36:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/ArduinoFiles.h:
    33,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:
    27,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    48:19: error: expected unqualified-id before numeric constant
     
    #define O_WRONLY  0X01  ///< Open for writing only.
                       ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    62:19: note: in expansion of macro 'O_WRONLY'
     #define O_WRITE   O_WRONLY
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:135:37: note: in expansion of macro 'O_WRITE'
             bool write = (mode & sdfat::O_WRITE) ? true : false;
                                         ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    48:19: error: expected ')' before numeric constant
     #define O_WRONLY  0X01  ///< Open for writing only.
                       ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    62:19: note: in expansion of macro 'O_WRONLY'
     #define O_WRITE   O_WRONLY
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:135:37: note: in expansion of macro 'O_WRITE'
             bool write = (mode & sdfat::O_WRITE) ? true : false;
                                         ^
    In file included from D:\DEVELO~1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23:0,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:136:31: error: 'sdfat' has not been declared
             bool append = (mode & sdfat::O_APPEND) ? true : false;
                                   ^
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:36:0,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/ArduinoFiles.h:
    33,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:
    27,
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src/SdFat.h:
    33,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SDFS\src/SDFS.h:36,
                     from C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:25,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\B4RDefines.h:23,
                     from D:\DEVELO~
    1\WEMOSP~1\PCERFV7\Objects\bin\sketch\AsyncStreams.cpp:1:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    51:19: error: expected unqualified-id before numeric constant
     
    #define O_APPEND  0X08  ///< Set append mode.
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:136:38: note: in expansion of macro 'O_APPEND'
             bool append = (mode & sdfat::O_APPEND) ? true : false;
                                          ^
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src/FatLib/FatApiConstants.h:
    51:19: error: expected ')' before numeric constant
     #define O_APPEND  0X08  ///< Set append mode.
                       ^
    C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD\src/SD.h:136:38: note: in expansion of macro 'O_APPEND'
             bool append = (mode & sdfat::O_APPEND) ? true : false;
                                          ^
    Multiple libraries were found 
    for "SD.h"
     Used: C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\
    2.5.2\libraries\SD
     
    Not used: C:\Users\admin\Documents\Arduino\libraries\SD
     
    Not used: C:\Program Files (x86)\Arduino\libraries\SD
    Multiple libraries were found 
    for "SdFat.h"
     Used: C:\Users\admin\Documents\Arduino\libraries\SdFat
     
    Not used: C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266SdFat
    Using library SPI at version 
    1.0 in folder: C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SPI
    Using library SD at version 
    2.0.0 in folder: C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD
    Using library SDFS at version 
    0.1.0 in folder: C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SDFS
    Using library SdFat at version 
    1.0.14 in folder: C:\Users\admin\Documents\Arduino\libraries\SdFat
    Using library Wire at version 
    1.0 in folder: C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\Wire
    Using library ESP8266WiFi at version 
    1.0 in folder: C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi
    Using library EEPROM at version 
    1.0 in folder: C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\EEPROM
    exit status 1
     
  2. rbghongade

    rbghongade Active Member Licensed User

    Friends,
    Apologies, the compilation is OK.
    I had an SD library installed (https://github.com/greiman/SdFat) which was interfering with the compilation.
    regards,
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice