BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Error compilling board arduino/genuino uno please someone should help me with my project


#1

this is the error please

Arduino: 1.8.5 (Windows 8.1), Board: "Arduino/Genuino Uno"

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:22:6: error: 'SdFatBase' has not been declared

 void SdFatBase::errorHalt(Print* pr) {

      ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp: In function 'void errorHalt(Print*)':

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:23:16: error: 'errorPrint' was not declared in this scope

   errorPrint(pr);

                ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp: At global scope:

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:27:6: error: 'SdFatBase' has not been declared

 void SdFatBase::errorHalt(Print* pr, char const* msg) {

      ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp: In function 'void errorHalt(Print*, const char*)':

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:28:21: error: 'errorPrint' was not declared in this scope

   errorPrint(pr, msg);

                     ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp: At global scope:

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:32:6: error: 'SdFatBase' has not been declared

 void SdFatBase::errorPrint(Print* pr) {

      ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp: In function 'void errorPrint(Print*)':

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:33:22: error: 'cardErrorCode' was not declared in this scope

   if (!cardErrorCode()) {

                      ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:37:27: error: 'cardErrorCode' was not declared in this scope

   pr->print(cardErrorCode(), HEX);

                           ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:39:29: error: 'cardErrorData' was not declared in this scope

   pr->println(cardErrorData(), HEX);

                             ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp: At global scope:

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:42:6: error: 'SdFatBase' has not been declared

 void SdFatBase::errorPrint(Print* pr, char const* msg) {

      ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:48:6: error: 'SdFatBase' has not been declared

 void SdFatBase::initErrorHalt(Print* pr) {

      ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp: In function 'void initErrorHalt(Print*)':

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:49:20: error: 'initErrorPrint' was not declared in this scope

   initErrorPrint(pr);

                    ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp: At global scope:

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:53:6: error: 'SdFatBase' has not been declared

 void SdFatBase::initErrorHalt(Print* pr, char const *msg) {

      ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:58:6: error: 'SdFatBase' has not been declared

 void SdFatBase::initErrorPrint(Print* pr) {

      ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp: In function 'void initErrorPrint(Print*)':

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:59:21: error: 'cardErrorCode' was not declared in this scope

   if (cardErrorCode()) {

                     ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:65:18: error: 'vol' was not declared in this scope

   } else if (vol()->fatType() == 0) {

                  ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:67:19: error: 'vwd' was not declared in this scope

   } else if (!vwd()->isOpen()) {

                   ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp: At global scope:

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:74:6: error: 'SdFatBase' has not been declared

 void SdFatBase::initErrorPrint(Print* pr, char const *msg) {

      ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:80:6: error: 'SdFatBase' has not been declared

 void SdFatBase::errorPrint(Print* pr, const __FlashStringHelper* msg) {

      ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:86:6: error: 'SdFatBase' has not been declared

 void SdFatBase::errorHalt(Print* pr, const __FlashStringHelper* msg) {

      ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:91:6: error: 'SdFatBase' has not been declared

 void SdFatBase::initErrorHalt(Print* pr, const __FlashStringHelper* msg) {

      ^

C:\Program Files (x86)\Arduino\libraries\SdFat\src\SdFat.cpp:96:6: error: 'SdFatBase' has not been declared

 void SdFatBase::initErrorPrint(Print* pr, const __FlashStringHelper* msg) {

      ^

exit status 1
Error compiling for board Arduino/Genuino Uno.

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

#2

please this is also the code i used please


#3

Please repost code, properly formatted as instructed, thanks. - Moderator

Blynk - FTFC


#5

Please look at the directions… Backtick characters, not commas… and at end of code as well. You will know when it looks correct :wink:


#6

It’s also a good idea to write your code, with only one error log, sometimes we can’t help you properly … It seems to be a problem with your SD library, but what problem? without your code I can’t signal it…