Closed Joykiller closed 6 years ago
Downloaded the beta version ran again and its now issuing:
In file included from test/wallet_tests.cpp:5:0: ./wallet.h:286:10: note: candidate: bool CWallet::SelectCoinsMinConf(const string&, const CAmount&, int, int, std::vector
, std::set<std::pair<const CWalletTx, unsigned int> >&, CAmount&) const bool SelectCoinsMinConf(const std::string &account, const CAmount& nTargetValue, int nConfMine, int nConfTheirs, std::vector vCoins, std::set<std::pair<const CWalletTx , unsigned int> >& setCoinsRet, CAmount& nValueRet) const; ^~~~~~ ./wallet.h:286:10: note: candidate expects 7 arguments, 6 provided In file included from /usr/local/include/boost/test/unit_test.hpp:19:0, from test/wallet_tests.cpp:13: test/wallet_tests.cpp:281:98: error: no matching function for call to ‘CWallet::SelectCoinsMinConf(const CAmount&, int, int, std::vector&, CoinSet&, CAmount&)’ BOOST_CHECK(wallet.SelectCoinsMinConf(COIN, 1, 6, vCoins, setCoinsRet2, nValueRet)); ^ In file included from test/wallet_tests.cpp:5:0: ./wallet.h:286:10: note: candidate: bool CWallet::SelectCoinsMinConf(const string&, const CAmount&, int, int, std::vector , std::set<std::pair<const CWalletTx, unsigned int> >&, CAmount&) const bool SelectCoinsMinConf(const std::string &account, const CAmount& nTargetValue, int nConfMine, int nConfTheirs, std::vector vCoins, std::set<std::pair<const CWalletTx , unsigned int> >& setCoinsRet, CAmount& nValueRet) const; ^~~~~~ ./wallet.h:286:10: note: candidate expects 7 arguments, 6 provided In file included from /usr/local/include/boost/test/unit_test.hpp:19:0, from test/wallet_tests.cpp:13: test/wallet_tests.cpp:297:101: error: no matching function for call to ‘CWallet::SelectCoinsMinConf(CAmount, int, int, std::vector&, CoinSet&, CAmount&)’ BOOST_CHECK(wallet.SelectCoinsMinConf(90*CENT, 1, 6, vCoins, setCoinsRet , nValueRet));
Closing due to inactivity
Not sure if you're still having the issue. I've found a possible work around.
The warning is merely letting you know that the switch body seems to be missing the break;
keyword after a case:
...
Bc some cases (pun not intended) should NOT have the break, you can silence the warning (the block below as an example).
The Redhat Developer Blog has a good explanation
TL;DR: It depends on the version of C++ you're using:
switch (cond) { case 1: bar (1); attribute ((fallthrough)); // C and C++03 case 2: bar (2); [[gnu::fallthrough]]; // C++11 and C++14 case 3: bar (3); [[fallthrough]]; // C++17 and above / ... / }
Below is the error compile code from console. These are the steps I took to compile under fedora..
1: ./autogen.sh 2: ./configure LDFLAGS="-Wl,-rpath=/usr/local/lib64 -L/usr/local/lib/ -L/usr/local/lib64/" CPPFLAGS="-I/usr/local/include/" 3: make
Then... the following gets this far
How to fix?