{"action":"opened","issue":{"url":"https://api.github.com/repos/libbitcoin/libbitcoin/issues/896","repository_url":"https://api.github.com/repos/libbitcoin/libbitcoin","labels_url":"https://api.github.com/repos/libbitcoin/libbitcoin/issues/896/labels{/name}","comments_url":"https://api.github.com/repos/libbitcoin/libbitcoin/issues/896/comments","events_url":"https://api.github.com/repos/libbitcoin/libbitcoin/issues/896/events","html_url":"https://github.com/libbitcoin/libbitcoin/issues/896","id":298244929,"number":896,"title":"Libbitcoin related error occurs when running Mastering Bitcoin Section 4 Code","user":{"login":"ekembs","id":6737078,"avatar_url":"https://avatars0.githubusercontent.com/u/6737078?v=4","gravatar_id":"","url":"https://api.github.com/users/ekembs","html_url":"https://github.com/ekembs","followers_url":"https://api.github.com/users/ekembs/followers","following_url":"https://api.github.com/users/ekembs/following{/other_user}","gists_url":"https://api.github.com/users/ekembs/gists{/gist_id}","starred_url":"https://api.github.com/users/ekembs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekembs/subscriptions","organizations_url":"https://api.github.com/users/ekembs/orgs","repos_url":"https://api.github.com/users/ekembs/repos","events_url":"https://api.github.com/users/ekembs/events{/privacy}","received_events_url":"https://api.github.com/users/ekembs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-19T11:38:00Z","updated_at":"2018-02-19T11:38:00Z","closed_at":null,"author_association":"NONE","body":"Hi guys,\r\n\r\nI am trying to run the Mastering Bitcoin C++ codes in Chpt 3-4 on Ubuntu and its not working.\r\nSee the codes here\r\nhttps://github.com/bitcoinbook/bitcoinbook/blob/develop/code/vanity-miner.cpp\r\n\r\nWhich I run as,\r\ng++ -std=gnu++11 -g vanity-miner Vanity_Address_Minerp121.cpp $(pkg-config --cflags --libs libbitcoin)\r\n\r\nQUESTION:\r\n1) It seems libbitcoin (v3) is referencing a non-existent library. How can i uninstall and reinstall libbitcoin?\r\n2) Do you know what the error means?\r\n\r\nSYSTEM############################\r\nBitcoin version v0.9.5.0-b880967-dirty-beta (2015-05-21 10:48:26 +0200)\r\nUsing OpenSSL version OpenSSL 1.0.2g  1 Mar 2016\r\nUsing BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)\r\n\r\nERROR###################################################\r\n\r\n/tmp/ccLedtPv.o: In function `main':\r\nVanity_Address_Minerp121.cpp:(.text+0x187): undefined reference to `libbitcoin::encode_base16(libbitcoin::array_slice<unsigned char>)'\r\n/tmp/ccLedtPv.o: In function `bitcoin_address(std::array<unsigned char, 32ul> const&)':\r\nVanity_Address_Minerp121.cpp:(.text+0x38b): undefined reference to `libbitcoin::wallet::payment_address::encoded() const'\r\n/tmp/ccLedtPv.o: In function `__static_initialization_and_destruction_0(int, int)':\r\nVanity_Address_Minerp121.cpp:(.text+0x4fa): undefined reference to `libbitcoin::config::checkpoint::checkpoint(std::string const&, unsigned long)'\r\nVanity_Address_Minerp121.cpp:(.text+0x549): undefined reference to `libbitcoin::config::checkpoint::checkpoint(std::string const&, unsigned long)'\r\nVanity_Address_Minerp121.cpp:(.text+0x598): undefined reference to `libbitcoin::config::checkpoint::checkpoint(std::string const&, unsigned long)'\r\nVanity_Address_Minerp121.cpp:(.text+0x5e7): undefined reference to `libbitcoin::config::checkpoint::checkpoint(std::string const&, unsigned long)'\r\nVanity_Address_Minerp121.cpp:(.text+0x636): undefined reference to `libbitcoin::config::checkpoint::checkpoint(std::string const&, unsigned long)'\r\n/tmp/ccLedtPv.o:Vanity_Address_Minerp121.cpp:(.text+0x685): more undefined references to `libbitcoin::config::checkpoint::checkpoint(std::string const&, unsigned long)' follow\r\ncollect2: error: ld returned 1 exit status\r\n\r\n \r\n\r\n"}}
{"actor":{"display_login":"ekembs"}}