Skip to content

Commit 502ac79

Browse files
committed
better explain how to disable autolinking for JSON
1 parent 27c40ee commit 502ac79

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ file in your project.
8181
```
8282

8383
MSVC users must also define the macro `BOOST_JSON_NO_LIB` to disable
84-
auto-linking.
84+
auto-linking. Note, that if you also want to avoid linking to Boost.Container,
85+
which is a dependency of Boost.JSON, you have to define
86+
`BOOST_CONTAINER_NO_LIB`. In order to disable auto-linking to Boost libraries
87+
completely you can define `BOOST_ALL_NO_LIB` instead.
8588

8689
### Embedded
8790

doc/qbk/overview.qbk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ file in your project.
8787
```
8888

8989
MSVC users must also define the macro `BOOST_JSON_NO_LIB` to disable
90-
auto-linking.
90+
auto-linking. Note, that if you also want to avoid linking to Boost.Container,
91+
which is a dependency of Boost.JSON, you have to define
92+
`BOOST_CONTAINER_NO_LIB`. In order to disable auto-linking to Boost libraries
93+
completely you can define `BOOST_ALL_NO_LIB` instead.
9194

9295
[heading Disabling Exceptions]
9396

0 commit comments

Comments
 (0)