Skip to content

Library mismatch causes link error #3571

Closed Answered by malkia
mmaypo asked this question in Q&A
Discussion options

You must be logged in to vote

I believe the issue is that you've compiled otel with WITH_STL=ON, which means that it defines -DOPENTELEMETRY_STL_VERSION=2023 according to this

elseif(WITH_STL STREQUAL "ON")

so you probably need to add -DOPENTELEMETRY_STL_VERSION=2023 - or if 2023 is too much, specify WITH_STL= and provide -DOPENTELEMETRY_STL_VERSION=<ver> instead.

That to be said I don't use CMake (I'm compiling it using bazel), so could've missed something.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mmaypo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants