我试图在Windows7上构建Boost 1_74_0 for Clang。我转到带有引导等的文件夹并运行:
bootstrap --with-toolset=clang-win
但我明白:
Building Boost.build engine
Failed to build Boost.build engine日志上写着:
Found with vswhere Visual Studio Locator version 2.5.2+gebb9f26a3d
###
### "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, metrowerks, mingw,
### vc11, vc12, vc14, vc141, vc142我确实将Clang文件夹添加到PATH env变量中。
我该怎么解决这个问题?
发布于 2020-06-18 08:43:55
我假设您的clang版本是安装在前面问题中的VS2019中的。
因此,您需要从Developer Command Prompt for VS 2019发出命令。由于您已经将Clang文件夹添加到您的PATH env变量中,下面的内容应该适用于您:
bootstrap.bat --with-toolset=clang-win
b2 toolset=clang-win link=shared threading=multi --build-type=complete stage注意:这构建了32位boost库二进制文件。
以下命令应该构建64位boost库二进制文件:
b2 toolset=clang-win address-model=64 link=shared threading=multi --build-type=complete stage但是,它只构建exception和test_exec_monitor二进制文件。
其他二进制文件(包括date_time )报告链接器错误。
https://stackoverflow.com/questions/62440722
复制相似问题