fatal error LNK1103: debugging information corrupt; recompile module
产生:
在VS2005安装SP1之后,build工程过程中出现错误。错误出现在build过程的link阶段,编译正常。
错误信息:
1>Linking...
1>qtmaind.lib(qtmain_win.obj) : fatal error LNK1103: debugging information corrupt; recompile module
解决方法:
在网上找了很久,大伙都是讲的调试VC6工程时出现这个错误的情况。是要把Tool -> Options -> Directories(VC6是这个,VS的是Tools -> Options -> Projects and Solutions -> VC++ Directories),将Include files和Library files中SDK的顺序放到最下边或者直接删掉较新的SDK。此方法对我遇到的错误无效。
在微软网站找到这个http://support.microsoft.com/kb/974193/。说错误的原因是链接器(linker)的bug导致了这个错误的产生。要解决这个问题只要关闭工程的程序数据库(program database,PDB)文件的生成即可。操作如下:
在Solutions Explorer中选中工程,点右键选Properties -> Linker -> Debugging,把Generate Debug Info选项改为No.这样就OK了~
Read more: http://sakurasea.com/program/fatal-error-lnk1103-debugging-information-corrupt-recompile-module/#ixzz29RL8SGTL
Under Creative Commons License: Attribution Non-Commercial Share Alike