c++ - fatal error C1001 : An internal error has occurred in the compiler

标签 c++ cpp-core-guidelines guideline-support-library

我尝试在我的 VS2013 中包含 gsl.h 以供动手使用。当我尝试构建项目时,它说

c:\users\njain6\documents\visual studio 2013\projects\gcldemo\string_span.h(336): fatal error C1001: An internal error has occurred in the compiler.

我遵循的步骤:

  1. 我从 Github 下载了 zip 文件。
  2. 将 zip 文件解压缩到项目文件夹中的一个文件夹中。
  3. 在项目中包含 gsl header 。

我在这里遗漏了什么吗?

最佳答案

这是因为它们仅在 VS 2015 Update 1 及更高版本上受支持。您需要:1) 将您的解决方案加载到 VS2015 Update 1(或 2)中。 2) 升级/重新定位解决方案以使用 VS2015 工具链。然后您会发现它有效。

关于c++ - fatal error C1001 : An internal error has occurred in the compiler,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36323898/

相关文章:

c++ - 将 gsl::span 与 range-v3 一起使用

c++ - 了解此 `const&` 特化的必要性

c++ - 常量缓冲区上的槽号

c++ - 调用函数将 int 转换为二进制

c++ - 是否有可以与 GCC 4.9.x 一起使用的 GSL 实现?

c++ - CMake 与 Visual Studio 2017 C++ 核心指南检查器 (CppCoreCheck) 的集成

c++ - gsl::span - 指向结束的指针

c++ - MySQL 与 C++ 程序

c++ - 简单多态转换不起作用

c++ - C++警告:将新创建的gsl::owner <>分配给非所有者