【发布时间】:2016-03-21 11:44:06
【问题描述】:
我下载 boost 1.55,解压,然后运行以下命令:
> bootstrap.bat
cl : Command line warning D9035 : option 'GZ' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'RTC1' instead of 'GZ'
cl : Command line warning D9002 : ignoring unknown option '/MLd'
Bootstrapping is done. To build, run:
...
> b2 --build-type=complete --build-dir=build --toolset=msvc-14.0 stage
但是,我收到以下错误:
error: msvc initialization: parameter 'version' inconsistent
error: no value was specified in earlier initialization
error: an explicit value is specified now
按照与 MSVC 2012 相同的步骤,我没有收到该错误。
如果我改为使用--toolset=msvc,那么它可以工作。但是,生成的文件有-vc 而不是-vc140,这是我想要的。
如何明确指定工具集?它在哪里“在早期初始化中指定”?
(我想这样做的原因是我后来遇到了一个奇怪的链接器错误 - 说它正在寻找一些 -vc120 boost 库......我不知道为什么。我试图消除所有可能性.)
【问题讨论】:
标签: c++ visual-c++ boost build visual-studio-2015