Skip to content

回复:有没有办法为网站自动处理比特币付款? ​

原始发布页

打开来源页面
查看 1 个交叉存档

有点晚了,不过也许其他人会遇到同样的问题。编译输出中有 2 个警告(各有 20 行长)和 2 个链接错误。错误是:

引用

obj/nogui/init.o(.gnu.linkonce.t._ZNK13wxArrayString4ItemEm+0x13): 在函数 `wxArrayString::Item(unsigned long) const' 中: /usr/local/include/wx-2.9/wx/buffer.h:42: 对 `wxTheAssertHandler' 的未定义引用

obj/nogui/init.o(.gnu.linkonce.t._ZNK13wxArrayString4ItemEm+0x45): 在函数 `wxArrayString::Item(unsigned long) const' 中: /usr/src/bitcoin/trunk/uint256.h:526: 对 `wxOnAssert(char const*, int, char const*, char const*, wchar_t const*)' 的未定义引用

这些问题可能是因为从 wxWidgets 的调试构建切换到了发布构建。他们正逐步转向只保留调试构建并放弃发布构建,所以发布构建因引用不存在的断言相关内容而损坏,他们可能并不在意。调试构建没什么可担心的。它完全适合用于发布。

bitcoind 作为守护进程运行,可以通过命令行或 JSON-RPC 控制。

感谢 madhatter 和 generica 详细说明在 freebsd 上构建的步骤。

英文原文 ​

展开英文原文

A little late, but in case anyone else has the same issue. The compile dump had 2 warnings (that were 20 lines long) and 2 link errors. The errors were:

Quote

obj/nogui/init.o(.gnu.linkonce.t._ZNK13wxArrayString4ItemEm+0x13): In function `wxArrayString::Item(unsigned long) const': /usr/local/include/wx-2.9/wx/buffer.h:42: undefined reference to `wxTheAssertHandler'

obj/nogui/init.o(.gnu.linkonce.t._ZNK13wxArrayString4ItemEm+0x45): In function `wxArrayString::Item(unsigned long) const': /usr/src/bitcoin/trunk/uint256.h:526: undefined reference to `wxOnAssert(char const*, int, char const*, char const*, wchar_t const*)'

Those are probably due to switching to the release build of wxWidgets instead of debug. They're moving towards only debug build and ditching the release build, so they probably don't care that their release build is broken by referring to non-existent assert stuff. There's nothing to fear about the debug build. It's fully suitable for releases.

bitcoind runs as a daemon and can either be controlled by command line or JSON-RPC.

Thanks madhatter and generica for detailing the instructions for building on freebsd.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。