Hal Finney 通信

回复:bitcoin 0.1.0 崩溃

中本聪 · 2009 年 1 月 10 日 · 19:11(原件未注明时区)

SN-10221 附来源、原文与上下文。

阅读语言

好的,谢谢。bitcoin-0.1.1-exe-dbg.rar 里的程序,与 bitcoin-0.1.1.rar 里的是同一次编译生成的版本。

OK, thanks. The one in bitcoin-0.1.1-exe-dbg.rar is the same build as in bitcoin-0.1.1.rar.

我忘了,用 MSVC 编译调试版本时,它会使用运行时 DLL 的调试版本,而 Windows 发行包里并不包含这些文件。实际上,MSVC 6.0 的运行时(MSVC60.DLL)是最后一个随 Windows 预装的版本,这也是大家仍然对那个古老的编译器版本感兴趣的原因。较新的 Visual C 版本无法生成不需要另装运行时软件包的独立 EXE 文件。

I forgot, when you build debug on MSVC, it uses the debug versions of the runtime DLLs, which aren't included with Windows distributions. Actually, MSVC 6.0's runtime (MSVC60.DLL) is the last version that shipped preinstalled on Windows, which is why the continued interest in that ancient version of the compiler. Later Visual C versions can't create a standalone EXE that doesn't require additional runtime packages installed.

我不能用 MSVC 6.0 来编译正式发布版本,因为它对 SHA-256 例程的优化效果太差,运行得太慢。

I can't use MSVC 6.0 for the release because its optimization of the SHA-256 routines is too slow.

随信附上一份调试运行时 DLL。(它们允许再分发。)

I've attached a copy of the debug runtime DLLs. (They're redistributable)

引用 Hal Finney 的来信Hal Finney来源 ↗

你好,Satoshi——带 .pdb 文件的那个版本在我这里运行不了,报错说找不到 MSVCP60D.DLL。我想这就是你担心的版本不兼容问题。

Hi Satoshi - The version with the .pdb file did not run for me, I got an error about MSVCP60D.DLL not being found. I imagine this is due to the version incompatibility you were worried about.

接下来那个删掉可疑代码并关闭优化的版本,在我这里似乎运行正常。所以问题可能与那一段有关。

The next version, that deleted the questionable line of code and turned off optimization, seems to run fine for me. So the problem may be related to that bit.

Hal

Hal

来源

阅读字号

选择适合你的字号,之后阅读会继续使用。