Arduino: Sketch using Timezone-Lib will not compile in v2.4.0

Created on 6 Jan 2018  路  5Comments  路  Source: esp8266/Arduino

Basic Infos

Hardware

Hardware: NodeMCU 1.0
Core Version: 2.4.0

Description

Any sketch using the Timezone-library from JChristensen will not compile with 2.4.0
There are lots of "... is not declared in this scope" errors referencing to the Timezone lib

Going back to 2.3.0 the compilations run fine without any error.

Can this please be checked? Thanks a lot.

Best regards

Most helpful comment

most likely a problem with your includes (sequence of).
without your sketch not reproducable
BUT: why use third party TZlib when newlibc allready supports TZ stuff?
e.g. see here: https://github.com/esp8266/Arduino/issues/1679#issuecomment-346631781

All 5 comments

most likely a problem with your includes (sequence of).
without your sketch not reproducable
BUT: why use third party TZlib when newlibc allready supports TZ stuff?
e.g. see here: https://github.com/esp8266/Arduino/issues/1679#issuecomment-346631781

Hello Schufti (and d-a-v),

is there a kind of documentation how to use the core time functions (like configTime and the time struct)?
And the newlib and these tzset settings?

In issue #1679 you also asked for some kind of documentation...

Thanks to all.

Meanwhile I solved my problem from the opening post: In the folder of the the TimeLib-library I renamed "Time.cpp" to "TimeLib.cpp". Now the compilation is successfull.

one can find the newlib documentation here
https://sourceware.org/newlib/libc.html

so since your - not core related - problem is solved, may you please close this issue?

as desired

Is related to #4122

Was this page helpful?
0 / 5 - 0 ratings