【问题标题】:Specifying toolset version when building boost 1.55 with MSVC 2015使用 MSVC 2015 构建 boost 1.55 时指定工具集版本
【发布时间】: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


    【解决方案1】:

    之前指定的版本在project-config.jam:

    using msvc ; 
    

    改成:

    using msvc : 14.0 ;
    

    【讨论】:

      猜你喜欢
      • 2013-12-14
      • 1970-01-01
      • 1970-01-01
      • 2015-08-25
      • 2015-10-12
      • 2018-07-12
      • 2014-09-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多