fatal error c1001 编译器中发生内部错误 OpenMesh6.3

时间:2023-03-09 14:17:33
fatal error c1001 编译器中发生内部错误 OpenMesh6.3

Internal Compiler Error VS 2015 Update1

VS2015 Update1 编译OpenMesh的额代码时发生错误

fatal error c1001 编译器中发生内部错误 OpenMesh6.3

(compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\special.c', line 6211)

1> To work around this problem, try simplifying or changing the program near the locations listed above.

原因是出现了诸如此类代码

OpenMesh::Vec3f normal[];

解决办法:将这类代码改为下面即可。

OpenMesh::Vec3f normal[] = { {},{},{},{} };

参考:OpenMesh Issues