Closed

Description
Getting the following errors with the minimal test program below. Can work around by making variable global, but it would be good to fix the problem with static.
C:\Users\Ray\AppData\Local\Temp\build2036106428985831191.tmp\sketch_jul01b.cpp.o: In function `setup':
sketch_jul01b.cpp:(.text+0xc): undefined reference to `__cxa_guard_acquire'
sketch_jul01b.cpp:(.text+0x10): undefined reference to `__cxa_guard_release'
C:\Users\Ray\AppData\Local\Temp\build2036106428985831191.tmp\sketch_jul01b.cpp.o: In function `loop':
sketch_jul01b.cpp:(.text+0x25): undefined reference to `__cxa_guard_acquire'
sketch_jul01b.cpp:(.text+0x37): undefined reference to `__cxa_guard_release'
collect2.exe: error: ld returned 1 exit status
Error compiling.
void setup()
{
}
void loop()
{
static uint32_t lastMillis = millis();
}