Unknown error
Posted: 15 Nov 2016 00:07
Hi,
I am trying to convert an Arduino library to the ZUNO, I have cleared a lot of error messages from the compiler but I am stuck... The compiler is throwing an "Unknown error":
The error message apprears without a newline direct after the last warning and is not preceeded by the filename, line-number... I have already enabled all compiler warnings and the extended reporting during compilation but there is no more information available.
Is there a way to find out what is causing this error?? There is no "enum MFRC522::StatusCode" in the code, only the below enumeration from the header file, so I guess it is something that the compiler creates when he is e.g. evaluating the constructor...
In the orignial code there was this enumeration with a forward reference to "byte", which is not allowed in C++, so I just removed the type defintion:
There are several functions in the code which use StatusCode as their typedef. It is quite a long time ago that I programmed in C and I have not much experience in C++ at all, so I don't know if that is causing the problem or not...
Any hints are welcome here.
Thank you very much in advance,
Andreas.
I am trying to convert an Arduino library to the ZUNO, I have cleared a lot of error messages from the compiler but I am stuck... The compiler is throwing an "Unknown error":
Code: Select all
ZUNO_MFRC522_sdcpp_.cpp:2404:18:warning:conversion from string literal to 'char *' is deprecated
ZUNO_MFRC522_sdcpp_.cpp:2418:17:warning:conversion from string literal to 'char *' is deprecated
ZUNO_MFRC522_sdcpp_.cpp:2421:19:warning:conversion from string literal to 'char *' is deprecated
ZUNO_MFRC522_sdcpp_.cpp:2443:19:warning:conversion from string literal to 'char *' is deprecated
ZUNO_MFRC522_sdcpp_.cpp:2453:17:warning:conversion from string literal to 'char *' is deprecated
ZUNO_MFRC522_sdcpp_.cpp:2480:17:warning:conversion from string literal to 'char *' is deprecatedUnknown error:'enum MFRC522::StatusCode' uCxx returned error code:-1
Fehler beim Kompilieren.
Is there a way to find out what is causing this error?? There is no "enum MFRC522::StatusCode" in the code, only the below enumeration from the header file, so I guess it is something that the compiler creates when he is e.g. evaluating the constructor...
In the orignial code there was this enumeration with a forward reference to "byte", which is not allowed in C++, so I just removed the type defintion:
Code: Select all
//enum StatusCode : byte {
enum StatusCode {
STATUS_OK , // Success
STATUS_ERROR , // Error in communication
STATUS_COLLISION , // Collission detected
STATUS_TIMEOUT , // Timeout in communication.
STATUS_NO_ROOM , // A buffer is not big enough.
STATUS_INTERNAL_ERROR , // Internal error in the code. Should not happen ;-)
STATUS_INVALID , // Invalid argument.
STATUS_CRC_WRONG , // The CRC_A does not match
STATUS_MIFARE_NACK = 0xff // A MIFARE PICC responded with NAK.
};
Any hints are welcome here.
Thank you very much in advance,
Andreas.