我尝试在我的 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.
我遵循的步骤:
- 我从 Github 下载了 zip 文件。
- 将 zip 文件解压缩到项目文件夹中的一个文件夹中。
- 在项目中包含 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/