Skip to content

Fix README shared-library link flag (-ldd_trace_cpp -> -ldd-trace-cpp)#340

Open
spottsdd wants to merge 1 commit into
DataDog:mainfrom
spottsdd:fix/readme-shared-lib-name
Open

Fix README shared-library link flag (-ldd_trace_cpp -> -ldd-trace-cpp)#340
spottsdd wants to merge 1 commit into
DataDog:mainfrom
spottsdd:fix/readme-shared-lib-name

Conversation

@spottsdd

Copy link
Copy Markdown

Summary

  • The Dynamic Linking section of the README instructs linking with -ldd_trace_cpp (underscore), but CMakeLists.txt sets OUTPUT_NAME "dd-trace-cpp" (hyphen) for both the shared and static library targets.
  • The installed file is actually libdd-trace-cpp.so/libdd-trace-cpp.a, so following the README's -ldd_trace_cpp instruction as written fails at link time (ld: cannot find -ldd_trace_cpp) / find_library can't locate it under that name.
  • Updated the two link-flag mentions and the example command to use -ldd-trace-cpp.

Test plan

  • Docs-only change; verified the corrected flag matches OUTPUT_NAME "dd-trace-cpp" in CMakeLists.txt and manually confirmed cmake --install produces libdd-trace-cpp.so on a fresh build.

Made with Cursor

…cpp)

CMakeLists.txt sets OUTPUT_NAME "dd-trace-cpp" for the shared and static
targets, so the installed file is libdd-trace-cpp.so/.a. The README's
dynamic linking section still referenced the old -ldd_trace_cpp flag,
which doesn't match any installed library name and fails at link time.

Co-authored-by: Cursor <cursoragent@cursor.com>
@datadog-official

datadog-official Bot commented Jul 15, 2026

Copy link
Copy Markdown

Tests

🔄 Datadog auto-retried 1 job - 0 passed on retry View in Datadog

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 7726650 | Docs | Datadog PR Page | Give us feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant