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
I searched for similar bug reports and found none was relevant.
What happened?
tz.h error: 'once_flag' is not a member of 'std'
What should happen instead?
I should be able to include that
Reproduction steps
From the latest dev, try to add these 2 lines to any of your .cpp files:
#include<date/tz.h>auto x = date::current_zone();
Then you will get this error while trying to build:
/workspaces/InfiniTime/src/libs/date/includes/date/tz.h:792:26: error: 'once_flag' is not a member of 'std'
[build] 792 | std::unique_ptrstd::once_flag adjusted_;
[build] | ^~~~~~~~~
[build] /workspaces/InfiniTime/src/libs/date/includes/date/tz.h:117:1: note: 'std::once_flag' is defined in header ''; did you forget to '#include '?
[build] 116 | #include
[build] +++ |+#include
[build] 117 | #include
[build] /workspaces/InfiniTime/src/libs/date/includes/date/tz.h:792:26: error: 'once_flag' is not a member of 'std'
[build] 792 | std::unique_ptrstd::once_flag adjusted_;
[build] | ^~~~~~~~~
[build] /workspaces/InfiniTime/src/libs/date/includes/date/tz.h:792:26: note: 'std::once_flag' is defined in header ''; did you forget to '#include '?
[build] /workspaces/InfiniTime/src/libs/date/includes/date/tz.h:792:35: error: template argument 1 is invalid
[build] 792 | std::unique_ptrstd::once_flag adjusted_;
[build] | ^
[build] /workspaces/InfiniTime/src/libs/date/includes/date/tz.h:792:35: error: template argument 2 is invalid
More details?
No response
Version
develop
Companion app
No response
The text was updated successfully, but these errors were encountered:
callingmybluff
changed the title
date/tz.h can not be impoted foir the lack of pthread
date/tz.h can not be imported for the lack of pthread
Jun 20, 2022
Just to give a bit more detail about this issue : if tz.h depends on pthread, it won't work on InfiniTime. InfiniTime is based on FreeRTOS, which, as most RTOS design for embedded systems, do not support POSIX threads. To work around this, you'll probably want to edit tz.h so it does not depend on pthread or implement timezone without tz.h.
Verification
What happened?
tz.h error: 'once_flag' is not a member of 'std'
What should happen instead?
I should be able to include that
Reproduction steps
From the latest dev, try to add these 2 lines to any of your .cpp files:
Then you will get this error while trying to build:
More details?
No response
Version
develop
Companion app
No response
The text was updated successfully, but these errors were encountered: