From 7726650c77de917eedd8ef6c150866dd804b4107 Mon Sep 17 00:00:00 2001 From: Shawn Potts Date: Wed, 15 Jul 2026 15:17:38 +0100 Subject: [PATCH] Fix shared library link flag in README (-ldd_trace_cpp -> -ldd-trace-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 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9778eeaa..ebe5aabd 100644 --- a/README.md +++ b/README.md @@ -104,12 +104,12 @@ c++ -I/path/to/dd-trace-cpp/.install/include -c -o my_app.o my_app.cpp ``` When linking an executable that uses `dd-trace-cpp`, specify linkage to the -built library using the `-ldd_trace_cpp` option and an appropriate `-L` option. +built library using the `-ldd-trace-cpp` option and an appropriate `-L` option. If the library was installed into the default system directories, then the `-L` -options is not needed. The `-ldd_trace_cpp` option is always needed. +options is not needed. The `-ldd-trace-cpp` option is always needed. ```shell -c++ -o my_app my_app.o -L/path/to/dd-trace-cpp/.install/lib -ldd_trace_cpp +c++ -o my_app my_app.o -L/path/to/dd-trace-cpp/.install/lib -ldd-trace-cpp ``` ## Contributing