I'm looking to use the GetBoolArg() function in the interpreter.cpp file what changes do I have to make for it to work?
I'm still new to development c, I tried several #include but without success.
Thank you in advance.
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityinterpreter.cpp
is part of the internal libbitcoin_consensus
library, while GetBoolArg()
is in common/args.{h/cpp}
which is part of the internal libbitcoin_common
library. The Makefile
specifies a linking order that has libbitcoin_common
depend on libbitcoin_consensus
. In order for implementation to work, you would have to modify the Makefile
and shuffle things around so that libbitcoin_consensus
could depend on libbitcoin_common
without any circular dependencies.
However this is an indicator that your implementation probably has a layer violation. Things in libbitcoin_consensus
should not need access to things in libbitcoin_common
, Rather you should add or modify one of the data passing classes to hold the value for the parameter that you want passed, and that class will be filled by callers located somewhere that already depends on both libbitcoin_common
and libbitcoin_consensus
.
#include <common/args.h>
?error: use of undeclared identifier 'GetBoolArg'