OTel opentelemetry-cpp::otlp_grpc_client
target is not linked correctly
#2443
Labels
bug
Something isn't working
triage/not-reproducible
Indicates an issue can not be reproduced as described.
I tried to compile an application using CMake and VcPkg
Steps to reproduce
Here's a simple version
publisher_jaeger.cc
CMakeLists.txt
Steps to build
At the build step, it found the target, but produced a linking error.
What is the expected behavior?
What did you expect to see?
No error and a successful linking
What is the actual behavior?
A linking error saying otlp:: symbols were not found
Additional context
A workaround is linking to two more libraries, then it compiles and the linking error goes away.
I'm not sure if the solution is to link the additional targets for otlp_grpc_client, or if the common symbols should be refactored into a private library, so filing the issue for the maintainers to decide
This is where the links could be added
opentelemetry-cpp/exporters/otlp/CMakeLists.txt
Lines 37 to 42 in 4bd64c9
The text was updated successfully, but these errors were encountered: