这个错误终于找到解决办法了。。。
编译环境:VC++6.0 XP系统
编译工程:MFC项目
link问题:
Linking...
LINK : error : Internal error during ReadSymbolTable
ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 004623F2
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 00000008
CONTEXT:
Eax = 011203A4 Esp = 0012E6D8
Ebx = 00000002 Ebp = 010E0514
Ecx = 011203A4 Esi = 01130264
Edx = 00000000 Edi = 01130264
Eip = 004623F2 EFlags = 00010246
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 0000003B SegGs = 00000000
Dr0 = 0012E6D8 Dr3 = 00000002
Dr1 = 010E0514 Dr6 = 011203A4
Dr2 = 00000000 Dr7 = 00000000
Error executing link.exe.
Tool execution canceled by user.
debug模式没有问题,release模式在link的时候出错。这个错误折腾了我整整半天的时间,最终找到解决方法:
错误主要出在 C:\Program Files\Microsoft Visual Studio\VC98\MFC\Lib\MFC42.LIB 这个库,将同事电脑里的MFC42.LIB拷贝过来替换本机的MFC42.LIB,然后rebuild项目就OK了。
这真是一个莫名其妙、让人头疼的错误!!!(同事电脑上的MFC42.LIB大小和我本机一样)