Skip to content

Instantly share code, notes, and snippets.

@PierreRochard
Created October 11, 2017 21:46
Show Gist options
  • Save PierreRochard/b4d72d0a88968b172613a29e76965cd6 to your computer and use it in GitHub Desktop.
Save PierreRochard/b4d72d0a88968b172613a29e76965cd6 to your computer and use it in GitHub Desktop.
➜ enterprisebitcoin git:(odb) ✗ make
Making all in src
CXXLD test/test_bitcoin
Undefined symbols for architecture x86_64:
"typeinfo for odb::pgsql::object_statements_base", referenced from:
typeinfo for odb::pgsql::object_statements<etransactions> in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
"odb::pgsql::object_statements_base::~object_statements_base()", referenced from:
odb::pgsql::object_statements<etransactions>::object_statements(odb::pgsql::connection&) in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
odb::pgsql::object_statements<etransactions>::~object_statements() in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
"odb::pgsql::insert_statement::insert_statement(odb::pgsql::connection&, char const*, char const*, bool, unsigned int const*, unsigned long, odb::pgsql::binding&, odb::pgsql::native_binding&, odb::pgsql::binding*, bool)", referenced from:
odb::pgsql::object_statements<etransactions>::persist_statement() in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
"odb::details::shared_base::_dec_ref_callback()", referenced from:
odb::object_traits_impl<etransactions, (odb::database_id)2>::statements_type& odb::pgsql::statement_cache::find_object<etransactions>() in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
odb::pgsql::object_statements<etransactions>::persist_statement() in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
std::__1::__tree<std::__1::__value_type<std::type_info const*, odb::details::shared_ptr<odb::pgsql::statements_base> >, std::__1::__map_value_compare<std::type_info const*, std::__1::__value_type<std::type_info const*, odb::details::shared_ptr<odb::pgsql::statements_base> >, odb::details::type_info_comparator, true>, std::__1::allocator<std::__1::__value_type<std::type_info const*, odb::details::shared_ptr<odb::pgsql::statements_base> > > >::destroy(std::__1::__tree_node<std::__1::__value_type<std::type_info const*, odb::details::shared_ptr<odb::pgsql::statements_base> >, void*>*) in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
odb::pgsql::object_statements<etransactions>::~object_statements() in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
"odb::pgsql::transaction::current()", referenced from:
odb::access::object_traits_impl<etransactions, (odb::database_id)2>::persist(odb::database&, etransactions&) in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
"odb::pgsql::insert_statement::execute()", referenced from:
odb::access::object_traits_impl<etransactions, (odb::database_id)2>::persist(odb::database&, etransactions&) in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
"odb::pgsql::default_value_traits<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, (odb::pgsql::database_type_id)10>::set_image(odb::details::basic_buffer<char>&, unsigned long&, bool&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
odb::access::object_traits_impl<etransactions, (odb::database_id)2>::persist(odb::database&, etransactions&) in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
"vtable for odb::object_already_persistent", referenced from:
odb::access::object_traits_impl<etransactions, (odb::database_id)2>::persist(odb::database&, etransactions&) in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"odb::transaction::~transaction()", referenced from:
CWalletDB::WriteTx(CWalletTx const&) in libbitcoin_wallet.a(libbitcoin_wallet_a-walletdb.o)
"typeinfo for odb::object_already_persistent", referenced from:
odb::access::object_traits_impl<etransactions, (odb::database_id)2>::persist(odb::database&, etransactions&) in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
"odb::pgsql::details::endian_traits::host_endian", referenced from:
odb::access::object_traits_impl<etransactions, (odb::database_id)2>::persist(odb::database&, etransactions&) in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
"odb::pgsql::database::database(int&, char**, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, odb::details::transfer_ptr<odb::pgsql::connection_factory>)", referenced from:
create_enterprise_database() in libbitcoin_wallet.a(libbitcoin_wallet_a-walletdb.o)
"odb::transaction::reset(odb::transaction_impl*, bool)", referenced from:
CWalletDB::WriteTx(CWalletTx const&) in libbitcoin_wallet.a(libbitcoin_wallet_a-walletdb.o)
"odb::transaction::commit()", referenced from:
CWalletDB::WriteTx(CWalletTx const&) in libbitcoin_wallet.a(libbitcoin_wallet_a-walletdb.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [test/test_bitcoin] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment