Using EEPROM Anything in loop() I'm trying to make a programm for Arduino Bluno Beetle, that saves a string in the loop. Here is my code:

#include &lt;EEPROM.h&gt;
#include &lt;EEPROMAnything.h&gt;
struct config_t{
   String lastThing;
    } savedValues;
void setup(){
   EEPROM_readAnything(ADDR, savedValues);
   Serial.println(lastThing);
}
String readString="asd";
void loop() {
 //...
 lastThing=readString;
 EEPROM_writeAnything(ADDR, savedValues);
}


(The EEPROMAnything.h can be found here: https://playground.arduino.cc/Code/EEPROMWriteAnything?action=sourceblock&amp;num=1)

The code works until the 11th line. It gives there the following error:

'lastThing' was not declared in this scope


Does anybody know how to fix this problem?
The proper syntax for referring to a struct member is [structName].[memberName]. Changing lastThing in lines 8 &amp; 13 to savedValues.lastThing fixes the "undeclared" error.