Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

time.h Compile errors with WD v2.0
#1

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?


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());
Reply


Messages In This Thread
time.h Compile errors with WD v2.0 - by roddyp - 07-01-2017, 19:19
RE: time.h Compile errors with WD v2.0 - by werk_ag - 07-01-2017, 19:51
RE: time.h Compile errors with WD v2.0 - by zitoune - 08-01-2017, 08:19
RE: time.h Compile errors with WD v2.0 - by roddyp - 08-01-2017, 13:14
RE: time.h Compile errors with WD v2.0 - by hornychz - 08-01-2017, 15:28
RE: time.h Compile errors with WD v2.0 - by roddyp - 08-01-2017, 17:45
RE: time.h Compile errors with WD v2.0 - by hornychz - 08-01-2017, 18:41
RE: time.h Compile errors with WD v2.0 - by roddyp - 08-01-2017, 22:28
RE: time.h Compile errors with WD v2.0 - by roddyp - 08-01-2017, 22:34
RE: time.h Compile errors with WD v2.0 - by werk_ag - 09-01-2017, 02:12
RE: time.h Compile errors with WD v2.0 - by roddyp - 09-01-2017, 12:03
RE: time.h Compile errors with WD v2.0 - by werk_ag - 10-01-2017, 02:57
RE: time.h Compile errors with WD v2.0 - by werk_ag - 09-01-2017, 00:11
RE: time.h Compile errors with WD v2.0 - by roddyp - 09-01-2017, 01:36
RE: time.h Compile errors with WD v2.0 - by Zappie - 09-01-2017, 21:49
RE: time.h Compile errors with WD v2.0 - by werk_ag - 10-01-2017, 03:24
RE: time.h Compile errors with WD v2.0 - by hornychz - 09-01-2017, 00:57
RE: time.h Compile errors with WD v2.0 - by werk_ag - 09-01-2017, 01:08
RE: time.h Compile errors with WD v2.0 - by hornychz - 09-01-2017, 01:23



Users browsing this thread: 1 Guest(s)