Bitcoin full node and query server

Apr 19, 2020

View in context in the libbitcoin Slack #general mirror.

D
damian13:39
I just created a new class and included <bitcoin/explorer.hpp> in the .cpp file like this: #include <bitcoin/bitcoin.hpp> #include <bitcoin/explorer.hpp> #include "btctransactioninput.h" BtcRpcListUnspent::BtcRpcListUnspent(QObject *parent) : BtcRpcEndPoint(parent) { } And this is how the Qt framework compiles it: g++ -c -pipe -g -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DBITCOIN_LIBRARY -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I../btc -I. -isystem /usr/local/include -I../number -I../bcaddress -I../arca-api-crypto -I../arca-api-protobuf/protos -I../QtCryptoHash/lib/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o btcrpclistunspent.o ../btc/btcrpclistunspent.cpp In file included from /usr/local/include/bitcoin/bitcoin.hpp:47, from ../btc/btcrpclistunspent.h:10, from ../btc/btcrpclistunspent.cpp:1: /usr/local/include/bitcoin/explorer/command.hpp: In function 'boost::filesystem::path libbitcoin::explorer::config_default_path()': /usr/local/include/bitcoin/explorer/command.hpp:58:1: error: 'SYSCONFDIR' was not declared in this scope 58 | BC_DECLARE_CONFIG_DEFAULT_PATH("libbitcoin" / BX_PROGRAM_NAME ".cfg") | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If I only include #include <bitcoin/bitcoin.hpp> it complies without any errors
(edited)