You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get the declarations of the zones you need to include zones.h
Without the "extern" in front of the declarations, the compiler will declare the variables and then fill them with zeroes if you forget to add "zones.c" to the required sources. My project uses "cmake" with which I am not very familar, and turns out I had forgotten to include it. Because the compiler was "happy" with the empty zero-initialized variables, the runtime errors (only on my embedded system with the missing zones.c) were very confusing and hard-to-debug.
I've added my timezone alias "Amsterdam" to the tables, so my numbers are off from yours. So this diff will not apply as shown here.
To get the declarations of the zones you need to include zones.h
Without the "extern" in front of the declarations, the compiler will declare the variables and then fill them with zeroes if you forget to add "zones.c" to the required sources. My project uses "cmake" with which I am not very familar, and turns out I had forgotten to include it. Because the compiler was "happy" with the empty zero-initialized variables, the runtime errors (only on my embedded system with the missing zones.c) were very confusing and hard-to-debug.
I've added my timezone alias "Amsterdam" to the tables, so my numbers are off from yours. So this diff will not apply as shown here.
The text was updated successfully, but these errors were encountered: