【问题标题】:How to compile Boost library with Visual Studio 2022 ( Preview 3)如何使用 Visual Studio 2022 编译 Boost 库(预览版 3)
【发布时间】:2021-10-26 07:28:21
【问题描述】:

显然 vc143 不受支持,我似乎无法使工具集命令工作 在 powershell 中使用以下命令:

./bootstrap.bat gcc 要么 ./bootstrap.bat 要么 ./bootstrap.bat msvc

Boost 版本是 1.77

问候, 乌斯曼

【问题讨论】:

  • “似乎无法使工具集命令工作”请显示您收到的确切错误消息。
  • PS F:\boost_1_77_0\boost_1_77_0> ./bootstrap.bat Building Boost.Build engine LOCALAPPDATA=C:\Users\Usman\AppData\Local Found with vswhere F:\vs ### ### "Unknown toolset: vcunk" ### ### You can specify the toolset as the argument, i.e.: ### .\build.bat msvc ### ### Toolsets supported by this script are: borland, como, gcc, ### gcc-nocygwin, intel-win32, mingw, ### vc12, vc14, vc141, vc142 ### ### If you have Visual Studio 2017 installed you will need to either update ### the Visual Studio 2017 installer or r ###
  • edit问题并在此处添加此信息。

标签: c++ visual-studio boost


【解决方案1】:

【讨论】:

  • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
  • 虽然此链接可能会回答问题,但最好在此处包含答案的基本部分并提供链接以供参考。如果链接页面发生更改,仅链接答案可能会失效。 - From Review
  • 已下载 boost_1_78_0.7z。它没有 bootstrap.bat 调用的 build.bat。
【解决方案2】:

我已经让它工作了,但它需要对一些文件进行大量更改才能使其工作。

我把我的程序放在这里: https://github.com/boostorg/boost/issues/552

希望有人可以将更改包含到 Boost 本身中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-10-27
    • 1970-01-01
    • 2015-05-13
    • 2022-07-08
    • 2022-10-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多