未知版本的编译器在编译时加强与MSVC 14.0(VS 2015) [英] Unknown compiler version while compiling Boost with MSVC 14.0 (VS 2015)

查看:6703
本文介绍了未知版本的编译器在编译时加强与MSVC 14.0(VS 2015)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到未知的编译器版本 - 请运行配置测试并报告结果,同时试图编译我的电脑上Boost库结果。
我有最新的增强(如该职位的日期) - 1.58.0结果
并未提振支持MSVC 14.0,没有?我如何运行配置测试?结果
截图

I get "Unknown compiler version - please run configure tests and report the results" while attempting to compile Boost library on my computer.
I have most recent Boost (as of date of the post) - 1.58.0.
Doesn't Boost support MSVC 14.0, yet? How do I "run the configure tests"?
Screenshots.

推荐答案

最新(在发布这个答案的时间)的提升1.58 不支持的 MSVC 14.0 preVIEW 这是在升压1.58发行时的最新MS编译器。
现在,的Visual Studio 的最新版本 2015年RC 这是不包括在升压1.58配置文件。

Latest (at the time of posting this answer) Boost 1.58 does support MSVC 14.0 Preview which was the latest MS compiler at the time of Boost 1.58 release. Now, the latest version of Visual Studio is 2015 RC which isn't covered in the boost 1.58 config file.

要停止提升1.58抱怨未知的编译器版本修改升压/配置/编译器/ visualc.hpp 并替换:

To stop Boost 1.58 complaining about unknown compiler version edit boost/config/compiler/visualc.hpp and replace:

// last known and checked version is 19.00.22129 (VC14 Preview):
#if (_MSC_VER > 1800 && _MSC_FULL_VER > 190022310)

// last known and checked version is 19.00.22816 (VC++ 2015 RC):
#if (_MSC_VER > 1800 && _MSC_FULL_VER > 190022816)

,你可以找到已经在升压回购做这里即将加速释放1.59

which you can find is already done in boost repo here for upcoming Boost 1.59 release.

更新:对于的Visual Studio 2015年RTM 将其设置为:

// last known and checked version is 19.00.23026 (VC++ 2015):
#if (_MSC_VER > 1800 && _MSC_FULL_VER > 190023026)

UPDATE2 :对于的Visual Studio 2015年更新1 将其设置为:

// last known and checked version is 19.00.23506 (VC++ 2015 Update 1):
#if (_MSC_VER > 1800 && _MSC_FULL_VER > 190023506)


此外,如果你有previously已在工具= MSVC-14.0 再从删除C运行Boost.Build:\\用户\\&LT ;名称> \\应用程序数据\\本地的\\ Temp 以下缓存文件:

b2_msvc_14.0_vcvarsall_x86.cmd 
b2_msvc_14.0_vcvarsall_x86_amd64.cmd 
b2_msvc_14.0_vcvarsall_x86_arm.cmd

更多关于这里

这篇关于未知版本的编译器在编译时加强与MSVC 14.0(VS 2015)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆