来自: https://svn.boost.org/trac10/ticket/11885

MSVC 12: compiler error in boost/type_traits/common_type.hpp(42)

Reported by: sk.aquileia@… Owned by: John Maddock
Milestone:   Component: type_traits
Version: Boost 1.60.0 Severity: Problem
Keywords:   Cc:  

Description

Visual Studio 2013 fails to build Boost 1.60, whereas 1.58 is built correctly. When built with Visual Studio 2008, 1.60 doesn't show this issue.

Command line:

.\b2 --with-thread --toolset=msvc-12.0

error:

.\boost/type_traits/common_type.hpp(42) : fatal error C1001: Interner Compilerfehler.
(Compilerdatei 'msc1.cpp', Zeile 1325)

This regression was likely introduced in commit Make common_type SFINAE-friendly, add tests
​https://github.com/boostorg/type_traits/commit/9fd4ee06b2

full error message for one of the files:

compile-c-c++ bin.v2\libs\chrono\build\msvc-12.0\debug\link-static\threading-multi\chrono.obj
chrono.cpp
C:\GitHub\external\_lib\boost_1_60_0\boost/type_traits/common_type.hpp(42) : fatal error C1001: Interner Compilerfehler.
(Compilerdatei 'msc1.cpp', Zeile 1325)
Vereinfachen oder ändern Sie das Programm im Umfeld der oben aufgeführten Positionen. Wählen Sie im Menü "Hilfe" von Visual C++ den Befehl "Technischer Support", oder öffnen Sie die Hilfedatei des technischen Supports, um weitere Informationen zu erhalten.
Interner Compilerfehler in C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.exe. Sie werden aufgefordert, später einen Fehlerbericht an Microsoft zu senden. call "C:\Users\SEBAST~2\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86.cmd" > nul
cl /Zm800 -nologo @"bin.v2\libs\chrono\build\msvc-12.0\debug\link-static\threading-multi\chrono.obj.rsp" ...failed compile-c-c++ bin.v2\libs\chrono\build\msvc-12.0\debug\link-static\threading-multi\chrono.obj...
 Oldest first  Newest first
 Show comments  Show property changes

Change History (6)

comment:1Changed 2 years ago by John Maddock

I'm unable to reproduce: the tests for both chrono and type_traits all build OK for me (other than some unrelated and expected type_traits failures) with msvc-10,11,12 and 14 and both Git develop and 1.60 release. This is with fully up to date / patched versions of Visual Studio though: is it possible your vc12 install is not patched with the latest updates?

comment:2Changed 2 years ago by sk.aquileia@…

Milestone: To Be Determined

It was indeed fixed by Update 5, sorry that I didn't check for patches before reporting it - I had just assumed Microsoft wouldn't publish major patches 2 years after release.

comment:3Changed 2 years ago by John Maddock

Resolution: → worksforme
Status: new → closed

comment:4Changed 2 years ago by anonymous

I hit the same issue with boost-1.60; I'm on "Update 3 of Visual Studio 2013 for Windows Desktop". As I had boost-1.55 downloaded, and didn't need the latest version, I've switched to using that, and the problem has gone away.

comment:5Changed 2 years ago by anonymous

the same problem and couldn't fixed unless switched to old versionso sad

comment:6Changed 2 years ago by anonymous

Don't you guys ever run Microsoft update? Seriously, update your VC12 install to update 5 and the issue goes away.

[注]

我用的是boost_1_67_0_b1_rc2, 也遇到了同样的编译错误,根据这篇文章的说法, 到这个网址上:

https://support.microsoft.com/en-us/help/2994375/description-of-visual-studio-2013-update-4

点击Download the latest Visual Studio 2013 update package now这个链接.

点进去后发现网页已经不存在了,于是搜了半天,只找到了一个Update4的下载页面,

https://www.microsoft.com/en-us/download/details.aspx?id=45326

下载了Update4, 先用着看看吧.

[更新]

我下载了VS2013 Update 4,总是装不上,也找不到VS2013 Update5.

后来搜到了这篇文章:http://www.libsdl.cn/bbs/forum.php?mod=viewthread&tid=3

于是在项目上定义BOOST_NO_CXX11_VARIADIC_TEMPLATES这个宏. 再次编译,就通过了.

MSVC 12: compiler error in boost/type_traits/common_type.hpp的更多相关文章

  1. Compiler Error: Function call with parameters that may be unsafe

    如下的代码: #include <stdio.h> #include <string> #include <algorithm> #include <cass ...

  2. idea报错:error java compilation failed internal java compiler error

    idea下面报如下问题 error java compilation failed internal java compiler error 解决办法:Setting->Compiler-> ...

  3. c++ builder 2010 错误 F1004 Internal compiler error at 0x9740d99 with base 0x9

    今天遇到一个奇怪的问题,拷贝项目后,在修改,会出现F1004 Internal compiler error at 0x9740d99 with base 0x9 ,不管怎么改,删除改动,都没用,关闭 ...

  4. Compiler Error Message: CS0016: Could not write to output file 回绝访问

    Compiler Error Message: CS0016: Could not write to output file 'c:\Windows...dll' 拒绝访问 C:\Windows\Te ...

  5. idea Error:java: Compilation failed: internal java compiler error

    idea 遇到Error:java: Compilation failed: internal java compiler error 是提示说你当前使用的编译器jdk版本不对. 按住Ctrl+Alt ...

  6. idea之internal java compiler error

    启动错误:Error:java: Compilation failed: internal java compiler error 解决:将圈选地方改为对应的jdk版本即可

  7. Error:java:Compilation failed: internal java compiler error

    在IDEA中编译时出现这个错误:Error:java:Compilation failed: internal java compiler error! Information:Using javac ...

  8. 安装lxml时gcc: internal compiler error: Killed (program cc1)的解决方法

    在安装lxml时出现如下错误 gcc: internal compiler error: Killed (program cc1) 通过查看dmesg发现下述错误信息[2517343.500178] ...

  9. 阿里云linux服务器安装Phalcon-----"phalcon Volt directory can't be written" "gcc: internal compiler error: Killed (program cc1)"

    这里特别蛋疼的一件事是官方英文文档和中文文档命令参数略有不同 中文文档: //通用平台下安装指定的软件包: sudo yum install git gcc make pcre-devel php-d ...

随机推荐

  1. Keepalived详解之 - LVS(IPVS)管理工具ipvsadm使用指南

    ipvsadm是什么? ipvsadm是用来配置.维护或者查看Linux内核当中virtual server table的一个工具, LVS(Linux virtual server)能基于一个集群当 ...

  2. java lambda 的用法

    一.打印数组 String[] s = "fdsfsdfds".split(""); Stream<String> str = Stream.of( ...

  3. poj3667 区间合并,找最左边的空余块

    题很简单:给两个操作1:查找最左边的a个空余块并填满 2:把从第a个开始的连续b个块置空 线段树维护左连续,右连续,最大连续,lazy-tag即可,query函数值得学习 #include<io ...

  4. 【C++ Primer | 10】STL算法

    第一部分 find(beg, end, val) equal(beg1, end, beg2) min(val1, val2) max(val1, val2) min_element(beg, end ...

  5. PHP服务端支付宝支付及回调

    支付宝支付 (由app端自行调起支付宝/微信) 1.下载PHP版SDK 1 <?php 2 3 define('IN_ECS', true); 4 5 /*App支付 PHP服务端*/ 6 /* ...

  6. 解决在使用pip list时出现DEPRECATION

    在C:\Users\Administrator下建立pip文件夹,在pip下新建pip.ini:内容为: [list]format=columns

  7. 自动化部署之gitlab权限管理--issue管理

    一.删除测试项目 先进入项目,选择编辑项目 二.拉取到最下方,移除项目 三 输入你要删除的项目名称 二 创建Group,User,Project 2.1 创建一个组,组名为java Group pat ...

  8. python中使用XPath笔记

    XPath在Python的爬虫学习中,起着举足轻重的地位,对比正则表达式 re两者可以完成同样的工作,实现的功能也差不多,但XPath明显比re具有优势,在网页分析上使re退居二线. XPath介绍: ...

  9. mac电脑对ntfs格式硬盘进行写操作(简单说就是向ntfs硬盘拷贝东西)

    使用mac电脑的童鞋应该都会遇到一个问题: 对ntfs格式的优盘或硬盘(移动硬盘默认ntfs)只能读不能写,也就是只能拷贝出数据,却没法拷贝数据到移动硬盘中. 下面是参考自网上的一种方法,无需第三方软 ...

  10. vue2.0以上版本安装sass(scss)

    一.首先说明sass和scss的区别. 1.异同:1)简言之可以理解scss是sass的一个升级版本,完全兼容sass之前的功能,又有了些新增能力.语法形式上有些许不同,最主要的就是sass是靠缩进表 ...