Linking (statically) open telemetry with existing C++ project fails with linker error. #2436
Unanswered
PeterStayPool
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Please provide the exact GCC command line used for linking, including all flags and options. You can run the build with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, All I am Peter.
I am trying to integrate the open telemetry into our code base but encountering the following errors.
For your information, we built
.a
libs and trying to link statically.For the project we are building, we passed
-pthread
option as well. The followings are errors we are seeing.cmake args used to build the open telemetry static lib (.a files)
cmake_gen_args=(
"-DCMAKE_BUILD_TYPE=${build_type}"
"-DCMAKE_INSTALL_PREFIX=${build_path_prefix}/${build_type}"
"-DCMAKE_CXX_COMPILER=clang++"
"-DCMAKE_CXX_STANDARD=14"
"-DBUILD_TESTING=OFF"
"-DBUILD_SHARED_LIBS=OFF"
"-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
"-DCMAKE_CXX_FLAGS_INIT=-fvisibility=hidden"
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
"-DCMAKE_CXX_FLAGS=-pthread"
Beta Was this translation helpful? Give feedback.
All reactions