-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Bug]: undefined reference to `absl::lts_20211102:: #1428
Comments
I think this is unlikely to be an Abseil bug and probably has nothing to do with the namespace. It's more likely that your build command is missing linker inputs. You need to provide instructions to build your whole project for us to look into this. |
Hi, @derekmauro , Sure, so my project does not directly use Absl, but instead, it has dependencies on GRPC, GoogleTest, and Google-cloud-cpp. After building absl, I also built them using the following command: For GRPC:
For GoogleTest,
For google-cloud-cpp,
And finally, when compiling my project, I pass |
Hey @YJHMITWEB did you managed to solve your problem ? |
Describe the issue
Hi, I have built abseil from source, but when I compile other projects using absl, I got a lot
undefined reference to
absl::lts_20211102:: .....` errors.I notice that after I built it, for example, there is a
in the file, but is there any way we can set the namespace to be as defined in
/mydir/abseil-cpp/absl/base/options.h
, Line 208~209:As when compiling my other project, it always raises the error like this:
Steps to reproduce the problem
As listed above
What version of Abseil are you using?
20211102.0, but I have also tried multiple other versions
What operating system and version are you using?
RHEL 8
What compiler and version are you using?
gcc 8.5
What build system are you using?
cmake 3.26
Additional context
No response
The text was updated successfully, but these errors were encountered: