From: Peter Dimov (pdimov_at_[hidden])
Date: 2024-04-28 17:31:27


René Ferdinand Rivera Morell wrote:
> Perhaps. Although it's easy enough to find instances of people having
> problems with it..
...
> <https://stackoverflow.com/questions/44133002/boost-vs2017-linking-to-the-wrong-dll/44133003#44133003>
> <https://stackoverflow.com/questions/51150197/cmake-generated-program-fails-to-link-on-windows-tries-to-link-to-non-existent/51150394#51150394>

Note how in both these cases autolink exposes a problem with
BOOST_ALL_DYN_LINK not being defined, even though the user is
trying to use a Boost .dll.

Had BOOST_ALL_DYN_LINK been defined correctly, autolink would
have caused no issues (because it would have linked to the same
library the build system did.)

(Forgetting to define BOOST_ALL_DYN_LINK correctly works...
some of the time. When it doesn't, it's pretty hard to figure out
what's wrong.)