From f0a771c0fc52d00ef970550f491821bb60ab368c Mon Sep 17 00:00:00 2001 From: Derrik Petrin Date: Sun, 10 Aug 2025 16:09:01 -0700 Subject: [PATCH] Fix example clang++ compile command The example command for compiling the compiled JSON library example using clang++ incorrectly uses the link path option to provide a full path to the boost_json library. That option needs to have only the path to the directory containing that library, and then the `-l` flag needs to also be passed, with the name of the library. --- user-guide/modules/ROOT/pages/getting-started.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user-guide/modules/ROOT/pages/getting-started.adoc b/user-guide/modules/ROOT/pages/getting-started.adoc index 4335f29..ce6d037 100644 --- a/user-guide/modules/ROOT/pages/getting-started.adoc +++ b/user-guide/modules/ROOT/pages/getting-started.adoc @@ -845,7 +845,7 @@ Clang: [source,none,subs="attributes+"] ---- -clang++ -I /usr/local/include example.cpp -L /usr/local/libboost_json.a -o example +clang++ -I /usr/local/include example.cpp -L /usr/local/lib -l boost_json -o example ---- NOTE: Replace `C:\boost` or `/usr/local` with your Boost installation prefix if necessary.