-
Notifications
You must be signed in to change notification settings - Fork 403
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
Failed to build with external abseil-cpp #1065
Comments
Still failing after add
|
Does change the order of inclusion of header file helps as documented here: https://github.com/open-telemetry/opentelemetry-cpp/blob/main/examples/otlp/README.md#additional-notes-regarding-abseil-library If not, please let us know the version of abseil-cpp used externally? |
I didn't try changing the order. It's ridiculous to make it work relying about including order, and our coding guideline disallow manually ordering the includes. The abseil-cpp commit id is 3c8b5d7 from master branch. |
Agree, I still believe -DHAVE_ABSEIL=ON should work in this case. If not, this needs to be fixed. |
Tested with below cmake command, and the build and tests were successful:
Looks like the problem is specific to bazel. Need to test more. |
Thanks, @owent. Assigned to you. |
It's simple to understand so I didn't follow the template.
The opentelemetry-cpp vendor parts of the absl source code within the API but without change the namespace. If I build a cpp target included both opentelementry-cpp & abseil-cpp, it would occurred an error (build with bazel & llvm-13):
The critical rule is to use an alternative namespace than the original namespace
absl
when vendoring any source code.The text was updated successfully, but these errors were encountered: