dd-opentracing-cpp
dd-opentracing-cpp copied to clipboard
dd-opentracing-cpp win x64 opentracing::DynamicallyLoadTracingLibrary always ends up in opentracing/dynamic_load_unsupported.cpp
I’m using the code C++ tracing example on Windows x64 [1]. At runtime, the opentracing::DynamicallyLoadTracingLibrary call [2] always ends up in the opentracing/src/dynamic_load_unsupported.cpp version of DynamicallyLoadTracingLibrary [3] rather than the correct Windows version opentracing-cpp/src/dynamic_load_windows.cpp [4].
What build dd-opentracing-cpp build changes do I need to make to correct this defective behavior in the Windows build?
1 - https://github.com/DataDog/dd-opentracing-cpp/blob/master/examples/cpp-tracing/dynamic-loading/tracer_example.cpp 2 - https://github.com/DataDog/dd-opentracing-cpp/blob/3ae0d0b1c1b5e77eac76bd588cb376d59234642d/examples/cpp-tracing/dynamic-loading/tracer_example.cpp#L9C39-L9C39 3 - https://github.com/opentracing/opentracing-cpp/blob/06b57f48ded1fa3bdd3d4346f6ef29e40e08eaf5/src/dynamic_load_unsupported.cpp#L5 4 - https://github.com/opentracing/opentracing-cpp/blob/06b57f48ded1fa3bdd3d4346f6ef29e40e08eaf5/src/dynamic_load_windows.cpp#L34
The screenshot below shows the call stack in WinDbg…