From 502ac792c7858f0c760a83eaf333fd57edd52bcb Mon Sep 17 00:00:00 2001 From: Dmitry Arkhipov Date: Wed, 9 Oct 2024 15:48:48 +0300 Subject: [PATCH] better explain how to disable autolinking for JSON --- README.md | 5 ++++- doc/qbk/overview.qbk | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a079f2fc..91e0dd1ee 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,10 @@ file in your project. ``` MSVC users must also define the macro `BOOST_JSON_NO_LIB` to disable -auto-linking. +auto-linking. Note, that if you also want to avoid linking to Boost.Container, +which is a dependency of Boost.JSON, you have to define +`BOOST_CONTAINER_NO_LIB`. In order to disable auto-linking to Boost libraries +completely you can define `BOOST_ALL_NO_LIB` instead. ### Embedded diff --git a/doc/qbk/overview.qbk b/doc/qbk/overview.qbk index ac7f5ef0e..4ef002919 100644 --- a/doc/qbk/overview.qbk +++ b/doc/qbk/overview.qbk @@ -87,7 +87,10 @@ file in your project. ``` MSVC users must also define the macro `BOOST_JSON_NO_LIB` to disable -auto-linking. +auto-linking. Note, that if you also want to avoid linking to Boost.Container, +which is a dependency of Boost.JSON, you have to define +`BOOST_CONTAINER_NO_LIB`. In order to disable auto-linking to Boost libraries +completely you can define `BOOST_ALL_NO_LIB` instead. [heading Disabling Exceptions]