解决“the symbol file *.pdb does not match the module”

请保证你用的dll,pdb文件是同一次编译出来的
因为每次编译可能导致代码布局不一样。就是说每次编译会导致相同的代码,在不同的pdb里面布局不一致。

原文解释:http://blogs.msdn.com/b/jimgries/archive/2007/07/06/why-does-visual-studio-require-debugger-symbol-files-to-exactly-match-the-binary-files-that-they-were-built-with.aspx

 

the actual layout of the code could be different.

The reason is that compiler writers are far more interested in generating correctly functioning code and generating it quickly than ensuring that whatever is generated is laid out identically on your hard drive.  Due to the numerous and varied methods and implementations for optimizing code, it is always possible that one build ended up with a little more time to do something extra or different than another build did.  Thus, the final result could be a different set of bits for what is the same functionality.

 

以下是我的翻译:

原因是这样的, 相比较于保证每次在你的硬盘上生成相同的功能性代码, 编译器的开发者对如何更准确、更快速的生成代码感兴趣。面对数量庞大的、各种各样的和需要优化的代码,总有可能某个版本是以花些时间去做些额外的或者不同于其他版本做的事情而完结,所以对相同的功能而言,会产生不用集合的比特位.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值