Skip to content

Instantly share code, notes, and snippets.

@PierreRochard
Created October 11, 2017 20:38
Show Gist options
  • Save PierreRochard/6ce50bca3affb44bdadd9976eeb4ab1f to your computer and use it in GitHub Desktop.
Save PierreRochard/6ce50bca3affb44bdadd9976eeb4ab1f to your computer and use it in GitHub Desktop.
➜ enterprisebitcoin git:(odb) ✗ make
Making all in src
CXX wallet/libbitcoin_wallet_a-walletdb.o
In file included from wallet/walletdb.cpp:19:
./wallet/enterprise/database.h:14:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
char *argv[] = {"./driver", "--user", "odb_test", "--database", "odb_test"};
^
./wallet/enterprise/database.h:14:33: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
char *argv[] = {"./driver", "--user", "odb_test", "--database", "odb_test"};
^
./wallet/enterprise/database.h:14:43: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
char *argv[] = {"./driver", "--user", "odb_test", "--database", "odb_test"};
^
./wallet/enterprise/database.h:14:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
char *argv[] = {"./driver", "--user", "odb_test", "--database", "odb_test"};
^
./wallet/enterprise/database.h:14:69: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
char *argv[] = {"./driver", "--user", "odb_test", "--database", "odb_test"};
^
In file included from wallet/walletdb.cpp:20:
./wallet/enterprise/transactions.h:6:9: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma db object
^
./wallet/enterprise/transactions.h:30:9: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma db id auto
^
7 warnings generated.
AR libbitcoin_wallet.a
CXXLD bitcoind
Undefined symbols for architecture x86_64:
"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::access::object_traits_impl<etransactions, (odb::database_id)2>::persist(odb::database&, etransactions&)", referenced from:
CWalletDB::WriteTx(CWalletTx const&) 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)
"odb::transaction::~transaction()", 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]: *** [bitcoind] 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