litecoin-project / litecoin

Litecoin source tree
http://www.litecoin.org
MIT License
4.35k stars 3.03k forks source link

‘class boost::dynamic_bitset<>’ has no member named ‘reserve’ ret.bitset.reserve(bytes.size() * 8); #857

Open abdulMohizQ opened 2 years ago

abdulMohizQ commented 2 years ago

Useful skills:

Want to work on this issue?

For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.

abdulMohizQ commented 2 years ago

upon make, this error occurs from blockencodings.cpp:13: ./libmw/include/mw/common/BitSet.h: In static member function ‘static BitSet BitSet::From(const std::vector&)’: ./libmw/include/mw/common/BitSet.h:19:20: error: ‘class boost::dynamic_bitset<>’ has no member named ‘reserve’ ret.bitset.reserve(bytes.size() * 8); ^ In file included from ./txmempool.h:20:0, from blockencodings.cpp:13: ./optional.h: At global scope: ./optional.h:24:14: warning: ‘nullopt’ defined but not used [-Wunused-variable] static auto& nullopt = boost::none; ^ Makefile:11952: recipe for target 'libbitcoin_server_a-blockencodings.o' failed make[2]: [libbitcoin_server_a-blockencodings.o] Error 1 make[2]: Leaving directory '/home/ubuntu/Github/litecoin/src' Makefile:20684: recipe for target 'check-recursive' failed make[1]: [check-recursive] Error 1

ahmedbodi commented 5 months ago

any updates on this?