Bitcoin Core linking error – Bitcoin Stack Trade

0
31


I am making an attempt to construct Bitcoin Supply code v24.2 for Home windows utilizing WSL operating Ubuntu (newest). I am following the directions directions given the /doc/build-windows.md. I obtained linker errors:

/usr/bin/x86_64-w64-mingw32-ld: libbitcoin_node.a(libbitcoin_node_a-txindex.o):txindex.cpp:(.textual content+0x3009): undefined reference to `node::OpenBlockFile(FlatFilePos const&, bool)'
/usr/bin/x86_64-w64-mingw32-ld: libbitcoin_node.a(libbitcoin_node_a-coinstats.o):coinstats.cpp:(.textual content+0x13fc): undefined reference to `node::BlockManager::LookupBlockIndex(uint256 const&)'
/usr/bin/x86_64-w64-mingw32-ld: libbitcoin_zmq.a(libbitcoin_zmq_a-zmqpublishnotifier.o):zmqpublishnotifier.cpp:(.textual content+0x4c3d): undefined reference to `node::ReadBlockFromDisk(CBlock&, CBlockIndex const*, Consensus::Params const&)'
collect2: error: ld returned 1 exit standing
make[2]: *** [Makefile:7029: bench/bench_bitcoin.exe] Error 1
make[2]: *** Ready for unfinished jobs....
make[2]: Leaving listing '/house/madguy/BitcoinSetup/bitcoin/src'
make[1]: *** [Makefile:18981: all-recursive] Error 1
make[1]: Leaving listing '/house/madguy/BitcoinSetup/bitcoin/src'
make: *** [Makefile:824: all-recursive] Error 1
root@MadGuy:/house/madguy/BitcoinSetup/bitcoin# grep -r "ReadBlockFromDisk" .

I did:

root@MadGuy:/house/madguy/BitcoinSetup/bitcoin# grep -r "ReadBlockFromDisk" .

and obtained (and a few extra):

./src/node/blockstorage.h:bool ReadBlockFromDisk(CBlock& block, const FlatFilePos& pos, const Consensus::Params& consensusParams);
./src/node/blockstorage.h:bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex, const Consensus::Params& consensusParams);
./src/node/blockstorage.cpp:bool ReadBlockFromDisk(CBlock& block, const FlatFilePos& pos, const Consensus::Params& consensusParams)

which suggests the headers and definitions exist (identical goes for OpenBlockFile(…)). However they’ve no preprocessors both, I am undecided what could cause this concern. Please assist, it is kinda pressing.

LEAVE A REPLY

Please enter your comment!
Please enter your name here