Dear Forum,
Has anybody ever seen this compilation error?
My code compiled about 2 weeks ago on an earlier version of Arduino IDE. I have not touched my code since then.
I recently downloaded and installed 1.8.11, compiled, and got this error. So I uninstalled 1.8.11 and then installed 1.8.10.
I still get the error.
struct gpsDMS{ //these variables are used for all calculations, ESPECIALLY latRadians
float latDegrees; // latitude degrees calculated from GPS receiver or entered by user
float latRadians; // latitude radians calculated from latitude degrees
float lonDegrees; // longitude degrees calculated from GPS receiver or entered by user
float lonRadians; // longitude radians calculated from longitude degrees
float latSign; // these are +1 or -1 used for changing the sign of the float
float lonSign; // these are +1 or -1 used for changing the sign of the float
byte latsgn; // these are the "+" and "-" symbols concatenated with the string
byte lonsgn; // these are the "+" and "-" symbols concatenated with the string
byte latCoords[20] = ""; //must be initalized as empty string so that strcat can be used
byte lonCoords[20] = ""; //https://www.codingame.com/playgrounds/14213/how-to-play-with-strings-in-c/string-concatenation
char latTemp[20] = "";
char lonTemp[20] = "";
} gpsHOME, gpsTARGET, gpsCURRENT, gpsPREV, gpsTEMP;
The error on the compilation highlights the first line struct gpsDMS{
But this is not a character array. This is a struct. How is the compiler getting mixed up between a character array and a struct?
Any ideas?
TIA,
--Neal