fatal error C1001: 编译器中发生内部错误

问题描述:
1>d:***.cpp(144) : fatal error C1001: 编译器中发生内部错误。
1>(编译器文件“F:\SP\vctools\compiler\utc\src\P2\main.c[0x10C463A4:0x00000004]”,第 182 行)
1> 要解决此问题,请尝试简化或更改上面所列位置附近的程序。
1>请选择 Visual C++
1>“帮助”菜单上的“技术支持”命令,或打开技术支持帮助文件来获得详细信息。
1>LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage
1> Version 8.00.50727.762
1> ExceptionCode = C0000005
1> ExceptionFlags = 00000000
1> ExceptionAddress = 10C463A4 (10B00000) “C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin\x86_amd64\c2.dll”
1> NumberParameters = 00000002
1> ExceptionInformation[ 0] = 00000000
1> ExceptionInformation[ 1] = 00000004
1>CONTEXT:
1> Eax = 00000000 Esp = 0018ED40
1> Ebx = 059C4EC8 Ebp = 00000000
1> Ecx = 059C4F00 Esi = 059C4EC8
1> Edx = 00000000 Edi = 00000000
1> Eip = 10C463A4 EFlags = 00010246
1> SegCs = 00000023 SegDs = 0000002B
1> SegSs = 0000002B SegEs = 0000002B
1> SegFs = 00000053 SegGs = 0000002B
1> Dr0 = 00000000 Dr3 = 00000000
1> Dr1 = 00000000 Dr6 = 00000000
1> Dr2 = 00000000 Dr7 = 00000000
错误代码定位:
assert(nEndPos >= nStartPos);
if(nStartPos < 0) //说明全部是空格字符或制表字符
{
strText.erase();
return;
}
nCopyLen = nEndPos - nStartPos + 1;
strText = strText.substr(nStartPos , nCopyLen);//报错行
}
这里写图片描述
可能原因:链接的静态库有问题,
静态库优化项:”全程序优化” 为 “启用链接时间代码生成(/GL)”,改为”否”编译通过.
这里写图片描述

猜你喜欢

转载自blog.csdn.net/tong794729500/article/details/79015740