B4R Question rSD library with ESP8266 wemos D1 R1 compiling error.

Imran_Farooq

Member
Licensed User
B4X:
B4R Version: 2.51
Parsing code.    (0.00s)
Compiling code.    (0.01s)
Building project    (0.04s)
Compiling & deploying Ino project (WeMos D1 R1 - COM3)    Error
Loading configuration...
Initialising packages...
Preparing boards...
Verifying...
E:\B4R_Docs\SourceCode\ESP8266_SDcard\Objects\bin\sketch\rSD.cpp: In member function 'virtual bool B4R::FileIterator::MoveNext()':
rSD.cpp:76:45: error: no matching function for call to 'fs::File::openNextFile(const uint8_t&)'
   current->file = dir.openNextFile(FILE_READ);
                                             ^
E:\B4R_Docs\SourceCode\ESP8266_SDcard\Objects\bin\sketch\rSD.cpp:76:45: note: candidate is:
In file included from C:\Users\Imran\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD\src/SD.h:24:0,
                 from E:\B4R_Docs\SourceCode\ESP8266_SDcard\Objects\bin\sketch\B4RDefines.h:23,
                 from E:\B4R_Docs\SourceCode\ESP8266_SDcard\Objects\bin\sketch\rSD.cpp:1:
C:\Users\Imran\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/FS.h:109:10: note: fs::File fs::File::openNextFile()
     File openNextFile();
          ^
C:\Users\Imran\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/FS.h:109:10: note:   candidate expects 0 arguments, 1 provided
Multiple libraries were found for "SD.h"
 Used: C:\Users\Imran\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD
 Not used: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
 

hatzisn

Expert
Licensed User
Longtime User
What is your version of Arduino and what is your version of B4R? Have you upgraded to the latest?
 
Upvote 0
Top