miner.cpp error: out-of-line definition of 'TestPackage' does not match any declaration in 'BlockAssembler' #12188

issue kpstensland opened this issue on January 15, 2018
  1. kpstensland commented at 4:42 AM on January 15, 2018: none

    Compiling on a MacBook with macOS High Sierra.

    Ran into the error below: CXX libbitcoin_server_a-miner.o miner.cpp:205:22: error: out-of-line definition of 'TestPackage' does not match any declaration in 'BlockAssembler' bool BlockAssembler::TestPackage(uint64_t packageSize, int64_t packageSigOpsCost) ^~~~~~~~~~~ ./miner.h:187:10: note: member declaration does not match because it is const qualified bool TestPackage(uint64_t packageSize, int64_t packageSigOpsCost) const;


    I believe I fixed the error by removing "const" at the end of the "bool TestPackage" line in the miner.h file. (This was after fixing another error using the changes shown in #11847.)

  2. kpstensland commented at 5:22 AM on January 15, 2018: none

    Never mind. Fixed my issue. Update xcode to latest version, which seems to have fixed the issue.

  3. kpstensland closed this on Jan 15, 2018

  4. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 06:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me