Qrome / marquee-scroller

Marquee Scroller Clock News Weather and More
https://www.thingiverse.com/thing:2867294
MIT License
329 stars 158 forks source link

Cannot compile 2.5a from release source #74

Closed dino340 closed 5 years ago

dino340 commented 5 years ago

Attempting to compile gives this error message:

Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, All Flash Contents, 921600"

marquee:1:1: error: expected unqualified-id before numeric constant

 5a/** The MIT License (MIT)

 ^

In file included from C:\Users\Garrett\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:41:0,

                 from C:\Users\Garrett\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,

                 from C:\Users\Garrett\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,

                 from sketch\Settings.h:38,

                 from C:\Users\Garrett\Desktop\marquee-scroller-Scroller_V2.5a\marquee\marquee.ino:28:

C:\Users\Garrett\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:140:28: error: expected declaration before end of line

 #pragma GCC diagnostic push

                            ^

sketch\TimeClient.cpp: In member function 'long int TimeClient::getCurrentEpochWithUtcOffset()':

TimeClient.cpp:151:67: error: invalid operands of types 'double' and 'long int' to binary 'operator%'

   return round(getCurrentEpoch() + 3600 * myUtcOffset + 86400L) % 86400L;

                                                                   ^

exit status 1
expected unqualified-id before numeric constant

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

This is because you are using the newer ESP8266 Core version 2.5.X beta -- the latest release 2.6 has the cast to long that fixes it for. This has already been addressed and fixed in Marque Scroller 2.6 release.