-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
Undefined reference to absl and utf8_range during linking #12271
Comments
Yes, protobuf now requires abseil as announced here. You need to install absl and set the |
@deannagarcia Yes, I know and installed abseil before the protobuf build. Protobuf installs successfully, but problems come when I try to build an execution target with a link to a shared library that uses protobuf:
During
All those errors are related with I was able to solve errors when linked
But it doesn't look like it is a right way of how it should be fixed. |
Yes, if you use a shared library that uses protobuf you will need to provide an |
For anyone who comes later, here is a related thread that elegantly solve the issue: #12292 |
I build a shared library with link to static protobuf, but when I try to link to it from target, it fails with undefined
undefined reference to absl::lts_20230125...
. Is there some new prerequisites to build projects with protobuf3.22.0
+? Do I have to link my projects to abseil or no now?The issue occurs on protobuff
3.22.0
+.libdrillClient.so
- a shared library that has link on static protobuf (cmake source)querySubmitter
- the target that has link on shared libdrillClient (cmake source)Abseil build:
Protobuf build:
Env:
OS: Ubuntu 18.04.6
Cmake: 3.26.0
GCC: 7.5.0
Protobuf: 3.22.2
Abseil: 20230125
The text was updated successfully, but these errors were encountered: