-
Notifications
You must be signed in to change notification settings - Fork 682
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
Link error when HAS_STRING_VIEW is defined #398
Comments
It may be a cmake bug, but I am not sure. I am not fluent in cmake and don't use it for myself. Others are maintaining it. I just always include src/tz.cpp in my build and don't bother making it into a separate library, and so my flags don't have an opportunity to differ between tz.cpp and the clients of tz.cpp. |
This should not be an excuse to provide a working version. I can not use it because it can't be added as DorfilIkatu said. |
I'm facing the same issue with In my opinion the API should at least be backward-compatible, proving |
This is still a problem, compiling with C++17 results in EDIT: I've opened #7591 on |
Hi,
I was trying to build an example using
libtz.so
, and I got an "undefined reference" error.Following is the code of my example:
The link error:
When I run
nm
command onlibtz.so
to check thatlocate_zone
symbol was there, I got:The result I got indicates that the library was compiled with
HAS_STRING_VIEW=1
, while the linker was trying to find the function version that is built whenHAS_STRING_VIEW=0
.After this I set
HAS_STRING_VIEW=0
and built everything again, and this time the build was successful.I'm not calling
locate_zone
directly, it is being called inside the library itself so, is it possible that this is a bug of the library and not an error on my example?Thanks
The text was updated successfully, but these errors were encountered: