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.
This commit is contained in:
Derrik Petrin
2025-10-28 10:01:27 -07:00
committed by GitHub
parent f85c437164
commit 48faaa30da

View File

@@ -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.