简体   繁体   English

Boost 用 VS 2019 构建新版本

[英]Boost build a new version with VS 2019

I downloaded the latest version from https://www.boost.org/ and I need to build in VS2019 (C++, 32bits) when I build the files contains mt and the toolset我从https://www.boost.org/下载了最新版本,当我构建包含 mt 和工具集的文件时,我需要在 VS2019(C++,32 位)中构建

My question is how I can remove the mt and the toolset from the lib and dlls ?我的问题是如何从 lib 和 dll 中删除 mt 和工具集?

Boost library file names describe what they support and how they were built. Boost 库文件名描述了它们支持什么以及它们是如何构建的。 In your case they support multithreading and were built with VS2019 (as opposed to MinGw, Clang or an earlier version of visual studio).在您的情况下,它们支持多线程并使用 VS2019 构建(与 MinGw、Clang 或早期版本的 Visual Studio 相对)。 For more information see: how can i decode boost library naming .有关更多信息,请参阅: 如何解码 boost 库命名

boost uses auto linking with visual studio , see how boost auto linking makes choice , so the library file names must match those that are required. boost使用visual studio自动链接,查看boost 自动链接如何进行选择,因此库文件名必须与所需的文件名匹配。

You haven't said why you want to "remove the mt and the toolset from the lib and dlls".您还没有说明为什么要“从 lib 和 dll 中删除 mt 和工具集”。
If it is to get boost to link with an existing project, then you'll need to build boost with the correct version of visual studio and without multi-threading, eg:如果要将boost与现有项目链接,那么您需要使用正确版本的visual studio 构建boost ,并且没有多线程,例如:

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

See: b2 invocation properties .请参阅: b2 调用属性

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM