Boost 使用 VS 2019 构建新版本

Boost build a new version with VS 2019

我从 https://www.boost.org/ 下载了最新版本,当我构建包含 mt 和工具集的文件时,我需要在 VS2019(C++,32 位)中构建

我的问题是如何从 lib 和 dll 中删除 mt 和工具集?

Boost 库文件名描述了它们支持的内容以及它们是如何构建的。在您的情况下,它们支持多线程并使用 VS2019 构建(与 MinGw、Clang 或 visual studio 的早期版本相反)。有关详细信息,请参阅:how can i decode boost library naming.

boost 将自动 linking 与 visual studio 结合使用,请参阅 how boost auto linking makes choice,因此库文件名必须与所需的相匹配。

您还没有说为什么要“从 lib 和 dll 中删除 mt 和工具集”。
如果要使用现有项目从 boost 到 link,那么您需要使用正确版本的 visual studio 构建 boost,并且不使用多线程,例如:

b2 toolset=msvc-??? threading=single ...

参见:b2 invocation properties