znort987 / blockparser

Simple C++ bitcoin blockchain parser
539 stars 319 forks source link

util.cpp: In function ‘void hash160ToAddr(uint8_t*, const uint8_t*, bool, uint8_t)’: util.cpp:729:24: error: ‘BN_CTX_init’ was not declared in this scope BN_CTX_init(ctx); #85

Open sanrs8201 opened 6 years ago

sanrs8201 commented 6 years ago

sandesh@sandesh-System-Product-Name:~/blockparser$ ./make c++ -- .r... -- parser.cpp c++ -- .r... -- cb/sql.cpp c++ -- .r... -- cb/help.cpp c++ -- .r... -- cb/taint.cpp c++ -- .r... -- cb/dumpTX.cpp c++ -- .r... -- cb/closure.cpp c++ -- .r... -- cb/headers.cpp c++ -- .r... -- cb/rawdump.cpp c++ -- .r... -- cb/rewards.cpp c++ -- .r... -- cb/pristine.cpp c++ -- .r... -- cb/txoTypes.cpp c++ -- .r... -- cb/allBalances.cpp c++ -- .r... -- cb/simpleStats.cpp c++ -- .r... -- cb/transactions.cpp c++ -- .r... -- crypto/sha256_btc.cpp c++ -- .r... -- crypto/ripemd160_btc.cpp c++ -- .r... -- option.cpp c++ -- .r... -- rmd160.cpp c++ -- .r... -- util.cpp c++ -- .r... -- timer.cpp c++ -- .r... -- sha256.cpp c++ -- .r... -- opcodes.cpp c++ -- .r... -- callback.cpp c++ -- .r... -- t/base58_t.cpp c++ -- .r... -- t/ripemd-160_t.cpp c++ -- .r... -- t/secp256k1_t.cpp c++ -- .r... -- t/sha256_t.cpp c++ -- .r... -- test.cpp c++ -- .r... -- tst.cpp util.cpp: In function ‘bool addrToHash160(uint8_t, const uint8_t, bool, bool)’: util.cpp:606:24: error: ‘BN_CTX_init’ was not declared in this scope BN_CTX_init(ctx); ^ util.cpp: In function ‘void hash160ToAddr(uint8_t, const uint8_t, bool, uint8_t)’: util.cpp:729:24: error: ‘BN_CTX_init’ was not declared in this scope BN_CTX_init(ctx); ^ At global scope: cc1plus: warning: unrecognized command line option "-Wno-unused-private-field" [enabled by default] make: *** [.objs/d5cd7ce3e58ff7a8ebc2786c817cb6dcd1a22603.o] Error 1 make: Target `all' not remade because of errors.

sanrs8201 commented 6 years ago

slove my problem, reinstall Ubuntu 14.4.5 amd64.