07-01-2017, 19:19
I'm new to Arduino dev, so please bear with me! After successfully building the TX software I'm trying to build the latest WD with Arduino IDE 1.8.0
I get a slew of errors relating to missing declarations from time.h (See examples below). The time library is installed, but I think the correct include file is never being loaded but the file "time.h" from "C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\include" is being loaded instead.
I could rename the "time.h" library but that seems bit of a sledgehammer approach. Suggestions?
I get a slew of errors relating to missing declarations from time.h (See examples below). The time library is installed, but I think the correct include file is never being loaded but the file "time.h" from "C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\include" is being loaded instead.
I could rename the "time.h" library but that seems bit of a sledgehammer approach. Suggestions?
Code:
D_TFT1:412: error: 'day' was not declared in this scope
sprintf(Clock_buf, "%02d-%02d-%d", day(), month(), year());
^
D_TFT1:412: error: 'month' was not declared in this scope
sprintf(Clock_buf, "%02d-%02d-%d", day(), month(), year());
^
D_TFT1:412: error: 'year' was not declared in this scope
sprintf(Clock_buf, "%02d-%02d-%d", day(), month(), year());



I've tried fresh install of Arduino and all libraries, and every time the same result. Windows 10, x64. I'll have to try it on a different PC next.