-
Notifications
You must be signed in to change notification settings - Fork 685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tzdb::locate_zone not exported on windows #850
Comments
Try compiling tz.cpp with Then when compiling the client code define Both #if HAS_STRING_VIEW
DATE_API const time_zone* locate_zone(std::string_view tz_name);
#else
DATE_API const time_zone* locate_zone(const std::string& tz_name);
#endif
DATE_API const time_zone* current_zone(); https://github.com/HowardHinnant/date/blob/master/include/date/tz.h#L283-L289 Or, use |
The free functions have |
I don't have Windows to test on. If you submit a patch that fixes your problem, I'll accept it. |
I can get the tzdb, because
get_tzdb
isDATE_API
.If I then try to call
locate_zone
orcurrent_zone
on the tzdb I get link errors because they aren't exported.The text was updated successfully, but these errors were encountered: