Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic timzone example compile error (Read 2451 times)
BeagleBot
Junior Member
**
Offline


Posts: 19
Location: Netherlands
Joined: Jul 8th, 2015
timzone example compile error
Jan 14th, 2017 at 2:00pm
Print Post  
Hello,
I tray to compile an example of the library > timezone > Worldclock.pde but I only have errors in visualmicro and the arduino ide

is the timezone not up to date or....
E R R O R :
Arduino: 1.8.0 (Windows 10), Board:"Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"

Code
Select All
WorldClock:41: error: 'dowSunday' was not declared in this scope

 TimeChangeRule usCDT = {"CDT", Second, dowSunday, Mar, 2, -300};

                                        ^

WorldClock:42: error: 'dowSunday' was not declared in this scope

 TimeChangeRule usCST = {"CST", First, dowSunday, Nov, 2, -360};

                                       ^

WorldClock:46: error: 'dowSunday' was not declared in this scope

 TimeChangeRule usMDT = {"MDT", Second, dowSunday, Mar, 2, -360};

                                        ^

WorldClock:47: error: 'dowSunday' was not declared in this scope

 TimeChangeRule usMST = {"MST", First, dowSunday, Nov, 2, -420};

                                       ^

WorldClock:54: error: 'dowSunday' was not declared in this scope

 TimeChangeRule usPDT = {"PDT", Second, dowSunday, Mar, 2, -420};

                                        ^

WorldClock:55: error: 'dowSunday' was not declared in this scope

 TimeChangeRule usPST = {"PST", First, dowSunday, Nov, 2, -480};

                                       ^

C:\Program Files (x86)\Arduino\libraries\Timezone\examples\WorldClock\WorldClock.pde: In function 'void setup()':

WorldClock:64: error: 'setTime' was not declared in this scope

     setTime(usET.toUTC(compileTime()));

                                      ^

C:\Program Files (x86)\Arduino\libraries\Timezone\examples\WorldClock\WorldClock.pde: In function 'void loop()':

WorldClock:70: error: 'now' was not declared in this scope

     utc = now();

               ^

C:\Program Files (x86)\Arduino\libraries\Timezone\examples\WorldClock\WorldClock.pde: In function 'time_t compileTime()':

WorldClock:91: error: 'tmElements_t' was not declared in this scope

     tmElements_t tm;

     ^

WorldClock:97: error: expected unqualified-id before '.' token

     tm.Month = ((m - months) / 3 + 1);

       ^

WorldClock:99: error: expected unqualified-id before '.' token

     tm.Day = atoi(compDate + 4);

       ^

WorldClock:100: error: expected unqualified-id before '.' token

     tm.Year = atoi(compDate + 7) - 1970;

       ^

WorldClock:101: error: expected unqualified-id before '.' token

     tm.Hour = atoi(compTime);

       ^

WorldClock:102: error: expected unqualified-id before '.' token

     tm.Minute = atoi(compTime + 3);

       ^

WorldClock:103: error: expected unqualified-id before '.' token

     tm.Second = atoi(compTime + 6);

       ^

WorldClock:104: error: expected primary-expression before ')' token

     t = makeTime(tm);

                    ^

WorldClock:104: error: 'makeTime' was not declared in this scope

C:\Program Files (x86)\Arduino\libraries\Timezone\examples\WorldClock\WorldClock.pde: In function 'void printTime(time_t, char*, char*)':

WorldClock:111: error: 'hour' was not declared in this scope

     sPrintI00(hour(t));

                     ^

WorldClock:112: error: 'minute' was not declared in this scope

     sPrintDigits(minute(t));

                          ^

WorldClock:113: error: 'second' was not declared in this scope

     sPrintDigits(second(t));

                          ^

WorldClock:115: error: 'weekday' was not declared in this scope

     Serial.print(dayShortStr(weekday(t)));

                                       ^

WorldClock:115: error: 'dayShortStr' was not declared in this scope

     Serial.print(dayShortStr(weekday(t)));

                                        ^

WorldClock:117: error: 'day' was not declared in this scope

     sPrintI00(day(t));

                    ^

WorldClock:119: error: 'month' was not declared in this scope

     Serial.print(monthShortStr(month(t)));

                                       ^

WorldClock:119: error: 'monthShortStr' was not declared in this scope

     Serial.print(monthShortStr(month(t)));

                                        ^

WorldClock:121: error: 'year' was not declared in this scope

     Serial.print(year(t));

                        ^

exit status 1
'dowSunday' was not declared in this scope 



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
 

« Last Edit: Jan 14th, 2017 at 2:20pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: timzone example compile error
Reply #1 - Jan 14th, 2017 at 2:22pm
Print Post  
Hi,

If you have a code issue then best place is the forum at arduino.cc or stackoverflow.

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint