spark-bouncer icon indicating copy to clipboard operation
spark-bouncer copied to clipboard

Cloud Compilation Error

Open snizzleorg opened this issue 9 years ago • 1 comments

In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from MFRC522/MFRC522.h:77,
from MFRC522/MFRC522.cpp:8:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
MFRC522/MFRC522.cpp: In member function 'bool MFRC522::MIFARE_UnbrickUidSector(bool)':
MFRC522/MFRC522.cpp:1629:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
MFRC522/MFRC522.cpp: In member function 'byte MFRC522::PCD_CommunicateWithPICC(byte, byte, byte*, byte, byte*, byte*, byte*, byte, bool)':
MFRC522/MFRC522.cpp:379:20: warning: '_validBits' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (*backLen < 2 || _validBits != 0) {
^
MFRC522/MFRC522.cpp: In member function 'void MFRC522::PICC_DumpMifareClassicSectorToSerial(MFRC522::Uid*, MFRC522::MIFARE_Key*, byte)':
MFRC522/MFRC522.cpp:1362:4: warning: 'invertedError' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (invertedError) {
^
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from flashee-eeprom/flashee-eeprom.h:22,
from flashee-eeprom/flashee-eeprom.cpp:17:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from sparkbouncer.cpp:2:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
sparkbouncer.cpp:10:17: error: 'user_t' was not declared in this scope
int checkAccess(user_t &user);
^
sparkbouncer.cpp:10:25: error: 'user' was not declared in this scope
int checkAccess(user_t &user);
^
sparkbouncer.cpp:11:15: error: variable or field 'saveUser' declared void
void saveUser(user_t &user, uint16_t keyId);
^
sparkbouncer.cpp:11:15: error: 'user_t' was not declared in this scope
sparkbouncer.cpp:11:23: error: 'user' was not declared in this scope
void saveUser(user_t &user, uint16_t keyId);
^
sparkbouncer.cpp:11:38: error: expected primary-expression before 'keyId'
void saveUser(user_t &user, uint16_t keyId);
^
sparkbouncer.cpp:12:1: error: 'user_t' does not name a type
user_t readUser(uint16_t keyId);
^
sparkbouncer.cpp:13:15: error: variable or field 'dumpUser' declared void
void dumpUser(user_t &user);
^
sparkbouncer.cpp:13:15: error: 'user_t' was not declared in this scope
sparkbouncer.cpp:13:23: error: 'user' was not declared in this scope
void dumpUser(user_t &user);
^
sparkbouncer.cpp:116:25: error: 'int checkAccess(user_t&)' redeclared as different kind of symbol
} user_t;
^
sparkbouncer.cpp:10:5: error: previous declaration of 'int checkAccess'
int checkAccess(user_t &user);
^
sparkbouncer.cpp: In function 'void rfidIdentify()':
sparkbouncer.cpp:470:31: error: 'checkAccess' cannot be used as a function
if (debugMode) {
^
sparkbouncer.cpp: In function 'int checkAccess(user_t&)':
sparkbouncer.cpp:528:29: error: 'int checkAccess(user_t&)' redeclared as different kind of symbol
memcpy(target, buffer, 16);
^
sparkbouncer.cpp:10:5: error: previous declaration of 'int checkAccess'
int checkAccess(user_t &user);
^
make: *** [sparkbouncer.o] Error 1

Unfortunately I cannot compile locally either since I cannot get the toolchain installed with the guidance you provided...

snizzleorg avatar Jun 17 '15 10:06 snizzleorg