Cla*_*diu 5 c++ boost build visual-c++ visual-studio-2015
我下载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
Run Code Online (Sandbox Code Playgroud)
但是,我收到以下错误:
error: msvc initialization: parameter 'version' inconsistent
error: no value was specified in earlier initialization
error: an explicit value is specified now
Run Code Online (Sandbox Code Playgroud)
按照与MSVC 2012相同的步骤,我没有得到该错误.
如果我这样做--toolset=msvc,那么它的工作原理.但是,生成的文件-vc代替了-vc140,这是我想要的.
如何明确指定工具集?它在哪里"在早期初始化中指定"?
(我想这样做的原因是我后来发现一个奇怪的链接器错误 - 说它正在寻找一些-vc120升级库......我不知道为什么.我正试图消除所有可能性.)
以前指定的版本位于project-config.jam:
using msvc ;
Run Code Online (Sandbox Code Playgroud)
将其更改为:
using msvc : 14.0 ;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1132 次 |
| 最近记录: |