编译比特币源码0.10.99内核报错

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/huhaoxuan2010/article/details/79578855

环境:

4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

报错如下:

make fails due to "/usr/include/boost/variant/get.hpp:178:5: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’"safecoin/safecoin#1


解决方法:

搜索文件rpcrawtransaction.cpp:

grep 'rpcrawtransaction.cpp' . -r

找到行:

const CScriptID& hash = boost::get<const CScriptID&>(address);

修改为:

const CScriptID& hash = boost::get<CScriptID>(address);
即可。

没有更多推荐了,返回首页