From 48faaa30da6c2e7cef05b988cb6df799565af894 Mon Sep 17 00:00:00 2001 From: Derrik Petrin Date: Tue, 28 Oct 2025 10:01:27 -0700 Subject: [PATCH] Fix example clang++ compile command (#489) 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 42991f0..ceee7a9 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.