Hi all
I have the same problem I want to compile a very easy example I have make a littel change to the /opt/hypertable/current/examples/apache_log/apache_log_load.cc:
My example is:
#include <Common/Compat.h>
#include <cstdio>
#include <Common/System.h>
#include <Common/Error.h>
#include <Hypertable/Lib/Client.h>
#include <Hypertable/Lib/KeySpec.h>
using namespace Hypertable;
using namespace std;
namespace {
const char *usage =
"\n"
" usage: apache_log_query <row-prefix> [ <cf> ... ]\n"
"\n"
" Queries the table 'LogDb' for all rows that start\n"
" with <row-prefix>. If no column families are\n"
" specified, then all column families are returned.\n"
" Otherwise, just the column families specified by\n"
" the <cf> arguments are returned\n";
}
int main(int argc, char **argv) {
ClientPtr client_ptr;
TablePtr table_ptr;
TableScannerPtr scanner_ptr;
ScanSpecBuilder scan_spec_builder;
Cell cell;
String end_row;
if (argc <= 1) {
cout << usage << endl;
return 0;
}
try {
// Create Hypertable client object
client_ptr = new Client();
// Open the 'LogDb' table
table_ptr = client_ptr->open_table("archive2");
// setup row interval
end_row = (String)argv[1];
end_row.append(1, 0xff); // next minimum row
scan_spec_builder.add_row_interval((const char *)argv[1], true, end_row.c_str(), false);
// setup scan_spec columns
// for (int i=2; i<argc; i++)
// scan_spec_builder.add_column(argv[i]);
// Create a scanner on the 'LogDb' table
scanner_ptr = table_ptr->create_scanner(scan_spec_builder.get());
}
catch (Exception &e) {
cerr << e << endl;
return 1;
}
// Iterate through the cells returned by the scanner
while (scanner_ptr->next(cell)) {
printf("%s\t%s", cell.row_key, cell.column_family);
if (*cell.column_qualifier)
printf(":%s", cell.column_qualifier);
printf("\t%s\n", std::string((const char *)cell.value, cell.value_len).c_str());
}
return 0;
}
for complile I use the follow command:
g++ -I/opt/hypertable/current/lib -I/opt/hypertable/current/include -L/usr/local/lib -L/usr/lib -lHyperCommon -lHypertable -lHyperComm -lHyperCommon -lHypertable -Wno-deprecated -c test.cc
The output of this command create a test.o file
g++ -o test test.o -L/opt/hypertable/current/lib -lHypertable -lHyperComm -lHyperCommon -lHyperTools -llog4cpp -lexpat -lboost_thread -lboost_iostreams -lboost_program_options -lboost_system -lsigar-x86-linux -lHyperspace -lz -lcurses
When I thorow the command above the output is:
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o): In
function `(anonymous namespace)::cmd_load_data(Hypertable::Client*,
unsigned int,
boost::intrusive_ptr<Hypertable::ConnectionManager>&,
boost::intrusive_ptr<Hypertable::DfsBroker::Client>&,
Hypertable::Hql::ParserState&,
Hypertable::HqlInterpreter::Callback&)':
HqlInterpreter.cc:(.text+0x15bc): undefined reference to
`Hypertable::DfsBroker::Client::Client(boost::intrusive_ptr<Hypertable::ConnectionManager>&,
boost::intrusive_ptr<Hypertable::Properties>&)'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o): In
function `(anonymous namespace)::cmd_dump_table(Hypertable::Client*,
boost::intrusive_ptr<Hypertable::ConnectionManager>&,
boost::intrusive_ptr<Hypertable::DfsBroker::Client>&,
Hypertable::Hql::ParserState&,
Hypertable::HqlInterpreter::Callback&)':
HqlInterpreter.cc:(.text+0x3739): undefined reference to
`Hypertable::DfsBroker::FileDevice::FileDevice(boost::intrusive_ptr<Hypertable::DfsBroker::Client>&,
std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::_Ios_Openmode)'
HqlInterpreter.cc:(.text+0x376c): undefined reference to `vtable for
Hypertable::DfsBroker::FileDevice'
HqlInterpreter.cc:(.text+0x3a58): undefined reference to
`Hypertable::DfsBroker::Client::Client(boost::intrusive_ptr<Hypertable::ConnectionManager>&,
boost::intrusive_ptr<Hypertable::Properties>&)'
HqlInterpreter.cc:(.text+0x3ddb): undefined reference to `vtable for
Hypertable::DfsBroker::FileDevice'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o): In
function `(anonymous namespace)::cmd_select(Hypertable::Client*,
boost::intrusive_ptr<Hypertable::ConnectionManager>&,
boost::intrusive_ptr<Hypertable::DfsBroker::Client>&,
Hypertable::Hql::ParserState&,
Hypertable::HqlInterpreter::Callback&)':
HqlInterpreter.cc:(.text+0x4c0b): undefined reference to
`Hypertable::DfsBroker::FileDevice::FileDevice(boost::intrusive_ptr<Hypertable::DfsBroker::Client>&,
std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::_Ios_Openmode)'
HqlInterpreter.cc:(.text+0x4c3e): undefined reference to `vtable for
Hypertable::DfsBroker::FileDevice'
HqlInterpreter.cc:(.text+0x4f9d): undefined reference to
`Hypertable::DfsBroker::Client::Client(boost::intrusive_ptr<Hypertable::ConnectionManager>&,
boost::intrusive_ptr<Hypertable::Properties>&)'
HqlInterpreter.cc:(.text+0x5398): undefined reference to `vtable for
Hypertable::DfsBroker::FileDevice'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o): In
function `Hypertable::DfsBroker::FileSink::~FileSink()':
HqlInterpreter.cc:(.text._ZN10Hypertable9DfsBroker8FileSinkD0Ev[Hypertable::DfsBroker::FileSink::~FileSink()]+0x17):
undefined reference to `vtable for Hypertable::DfsBroker::FileDevice'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o): In
function `Hypertable::DfsBroker::FileSink::~FileSink()':
HqlInterpreter.cc:(.text._ZN10Hypertable9DfsBroker8FileSinkD1Ev[Hypertable::DfsBroker::FileSink::~FileSink()]+0x14):
undefined reference to `vtable for Hypertable::DfsBroker::FileDevice'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o): In
function
`boost::iostreams::detail::execute_traits<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::result_of<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > > ()()>::type>::result_type
boost::iostreams::detail::execute_all<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::reset_operation<boost::iostreams::detail::optional<boost::iostreams::detail::concept_adapter<Hypertable::DfsBroker::FileSink>
> >
>(boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::reset_operation<boost::iostreams::detail::optional<boost::iostreams::detail::concept_adapter<Hypertable::DfsBroker::FileSink>
> >)':
HqlInterpreter.cc:(.text._ZN5boost9iostreams6detail11execute_allINS1_22member_close_operationINS1_16linked_streambufIcSt11char_traitsIcEEEEES8_NS1_15reset_operationINS1_8optionalINS1_15concept_adapterIN10Hypertable9DfsBroker8FileSinkEEEEEEEEENS1_14execute_traitsIT_NS_9result_ofIFSJ_vEE4typeEE11result_typeESJ_T0_T1_[boost::iostreams::detail::execute_traits<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::result_of<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > > ()()>::type>::result_type
boost::iostreams::detail::execute_all<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::reset_operation<boost::iostreams::detail::optional<boost::iostreams::detail::concept_adapter<Hypertable::DfsBroker::FileSink>
> >
>(boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::reset_operation<boost::iostreams::detail::optional<boost::iostreams::detail::concept_adapter<Hypertable::DfsBroker::FileSink>
> >)]+0x40): undefined reference to `vtable for
Hypertable::DfsBroker::FileDevice'
HqlInterpreter.cc:(.text._ZN5boost9iostreams6detail11execute_allINS1_22member_close_operationINS1_16linked_streambufIcSt11char_traitsIcEEEEES8_NS1_15reset_operationINS1_8optionalINS1_15concept_adapterIN10Hypertable9DfsBroker8FileSinkEEEEEEEEENS1_14execute_traitsIT_NS_9result_ofIFSJ_vEE4typeEE11result_typeESJ_T0_T1_[boost::iostreams::detail::execute_traits<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::result_of<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > > ()()>::type>::result_type
boost::iostreams::detail::execute_all<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::reset_operation<boost::iostreams::detail::optional<boost::iostreams::detail::concept_adapter<Hypertable::DfsBroker::FileSink>
> >
>(boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::reset_operation<boost::iostreams::detail::optional<boost::iostreams::detail::concept_adapter<Hypertable::DfsBroker::FileSink>
> >)]+0xa0): undefined reference to `vtable for
Hypertable::DfsBroker::FileDevice'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o):HqlInterpreter.cc:(.text._ZN5boost9iostreams6detail18indirect_streambufIN10Hypertable9DfsBroker8FileSinkESt11char_traitsIcESaIcENS0_6outputEE4openERKS5_ii[boost::iostreams::detail::indirect_streambuf<Hypertable::DfsBroker::FileSink,
std::char_traits<char>, std::allocator<char>,
boost::iostreams::output>::open(Hypertable::DfsBroker::FileSink
const&, int, int)]+0x56): more undefined references to `vtable for
Hypertable::DfsBroker::FileDevice' follow
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker8FileSinkE[vtable
for Hypertable::DfsBroker::FileSink]+0x10): undefined reference to
`Hypertable::DfsBroker::FileDevice::open(boost::intrusive_ptr<Hypertable::DfsBroker::Client>&,
std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::_Ios_Openmode)'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker8FileSinkE[vtable
for Hypertable::DfsBroker::FileSink]+0x14): undefined reference to
`Hypertable::DfsBroker::FileDevice::is_open() const'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker8FileSinkE[vtable
for Hypertable::DfsBroker::FileSink]+0x18): undefined reference to
`Hypertable::DfsBroker::FileDevice::read(char*, unsigned int)'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker8FileSinkE[vtable
for Hypertable::DfsBroker::FileSink]+0x1c): undefined reference to
`Hypertable::DfsBroker::FileDevice::bytes_read()'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker8FileSinkE[vtable
for Hypertable::DfsBroker::FileSink]+0x20): undefined reference to
`Hypertable::DfsBroker::FileDevice::length()'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker8FileSinkE[vtable
for Hypertable::DfsBroker::FileSink]+0x24): undefined reference to
`Hypertable::DfsBroker::FileDevice::write(char const*, unsigned int)'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker8FileSinkE[vtable
for Hypertable::DfsBroker::FileSink]+0x28): undefined reference to
`Hypertable::DfsBroker::FileDevice::bytes_written()'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker8FileSinkE[vtable
for Hypertable::DfsBroker::FileSink]+0x2c): undefined reference to
`Hypertable::DfsBroker::FileDevice::close()'
/opt/hypertable/current/lib/libHypertable.a(HqlInterpreter.cc.o):(.rodata._ZTIN10Hypertable9DfsBroker8FileSinkE[typeinfo
for Hypertable::DfsBroker::FileSink]+0x10): undefined reference to
`typeinfo for Hypertable::DfsBroker::FileDevice'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):
In function `Hypertable::LoadDataSourceFileDfs::init_src()':
LoadDataSourceFileDfs.cc:(.text+0xf8): undefined reference to `vtable
for Hypertable::DfsBroker::FileDevice'
LoadDataSourceFileDfs.cc:(.text+0x13f): undefined reference to `vtable
for Hypertable::DfsBroker::FileDevice'
LoadDataSourceFileDfs.cc:(.text+0x3c6): undefined reference to `vtable
for Hypertable::DfsBroker::FileDevice'
LoadDataSourceFileDfs.cc:(.text+0x42c): undefined reference to `vtable
for Hypertable::DfsBroker::FileDevice'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):
In function
`Hypertable::LoadDataSourceFileDfs::LoadDataSourceFileDfs(boost::intrusive_ptr<Hypertable::DfsBroker::Client>&,
std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >
const&, int, int)':
LoadDataSourceFileDfs.cc:(.text+0x53f): undefined reference to
`Hypertable::DfsBroker::FileDevice::FileDevice(boost::intrusive_ptr<Hypertable::DfsBroker::Client>&,
std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::_Ios_Openmode)'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):
In function
`Hypertable::LoadDataSourceFileDfs::LoadDataSourceFileDfs(boost::intrusive_ptr<Hypertable::DfsBroker::Client>&,
std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >
const&, int, int)':
LoadDataSourceFileDfs.cc:(.text+0x9d2): undefined reference to
`Hypertable::DfsBroker::FileDevice::FileDevice(boost::intrusive_ptr<Hypertable::DfsBroker::Client>&,
std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::_Ios_Openmode)'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):
In function `Hypertable::DfsBroker::FileSource::~FileSource()':
LoadDataSourceFileDfs.cc:(.text._ZN10Hypertable9DfsBroker10FileSourceD1Ev[Hypertable::DfsBroker::FileSource::~FileSource()]+0x14):
undefined reference to `vtable for Hypertable::DfsBroker::FileDevice'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):
In function `Hypertable::DfsBroker::FileSource::~FileSource()':
LoadDataSourceFileDfs.cc:(.text._ZN10Hypertable9DfsBroker10FileSourceD0Ev[Hypertable::DfsBroker::FileSource::~FileSource()]+0x17):
undefined reference to `vtable for Hypertable::DfsBroker::FileDevice'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):
In function
`boost::iostreams::detail::execute_traits<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::result_of<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > > ()()>::type>::result_type
boost::iostreams::detail::execute_all<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::reset_operation<boost::iostreams::detail::optional<boost::iostreams::detail::concept_adapter<Hypertable::DfsBroker::FileSource>
> >
>(boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::reset_operation<boost::iostreams::detail::optional<boost::iostreams::detail::concept_adapter<Hypertable::DfsBroker::FileSource>
> >)':
LoadDataSourceFileDfs.cc:(.text._ZN5boost9iostreams6detail11execute_allINS1_22member_close_operationINS1_16linked_streambufIcSt11char_traitsIcEEEEES8_NS1_15reset_operationINS1_8optionalINS1_15concept_adapterIN10Hypertable9DfsBroker10FileSourceEEEEEEEEENS1_14execute_traitsIT_NS_9result_ofIFSJ_vEE4typeEE11result_typeESJ_T0_T1_[boost::iostreams::detail::execute_traits<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::result_of<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > > ()()>::type>::result_type
boost::iostreams::detail::execute_all<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::reset_operation<boost::iostreams::detail::optional<boost::iostreams::detail::concept_adapter<Hypertable::DfsBroker::FileSource>
> >
>(boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::reset_operation<boost::iostreams::detail::optional<boost::iostreams::detail::concept_adapter<Hypertable::DfsBroker::FileSource>
> >)]+0x40): undefined reference to `vtable for
Hypertable::DfsBroker::FileDevice'
LoadDataSourceFileDfs.cc:(.text._ZN5boost9iostreams6detail11execute_allINS1_22member_close_operationINS1_16linked_streambufIcSt11char_traitsIcEEEEES8_NS1_15reset_operationINS1_8optionalINS1_15concept_adapterIN10Hypertable9DfsBroker10FileSourceEEEEEEEEENS1_14execute_traitsIT_NS_9result_ofIFSJ_vEE4typeEE11result_typeESJ_T0_T1_[boost::iostreams::detail::execute_traits<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::result_of<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > > ()()>::type>::result_type
boost::iostreams::detail::execute_all<boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::reset_operation<boost::iostreams::detail::optional<boost::iostreams::detail::concept_adapter<Hypertable::DfsBroker::FileSource>
> >
>(boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::member_close_operation<boost::iostreams::detail::linked_streambuf<char,
std::char_traits<char> > >,
boost::iostreams::detail::reset_operation<boost::iostreams::detail::optional<boost::iostreams::detail::concept_adapter<Hypertable::DfsBroker::FileSource>
> >)]+0xa0): undefined reference to `vtable for
Hypertable::DfsBroker::FileDevice'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):
In function
`boost::iostreams::detail::indirect_streambuf<Hypertable::DfsBroker::FileSource,
std::char_traits<char>, std::allocator<char>,
boost::iostreams::input>::open(Hypertable::DfsBroker::FileSource
const&, int, int)':
LoadDataSourceFileDfs.cc:(.text._ZN5boost9iostreams6detail18indirect_streambufIN10Hypertable9DfsBroker10FileSourceESt11char_traitsIcESaIcENS0_5inputEE4openERKS5_ii[boost::iostreams::detail::indirect_streambuf<Hypertable::DfsBroker::FileSource,
std::char_traits<char>, std::allocator<char>,
boost::iostreams::input>::open(Hypertable::DfsBroker::FileSource
const&, int, int)]+0x78): undefined reference to `vtable for
Hypertable::DfsBroker::FileDevice'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):LoadDataSourceFileDfs.cc:(.text._ZN5boost9iostreams6detail18indirect_streambufIN10Hypertable9DfsBroker10FileSourceESt11char_traitsIcESaIcENS0_5inputEE4openERKS5_ii[boost::iostreams::detail::indirect_streambuf<Hypertable::DfsBroker::FileSource,
std::char_traits<char>, std::allocator<char>,
boost::iostreams::input>::open(Hypertable::DfsBroker::FileSource
const&, int, int)]+0xa6): more undefined references to `vtable for
Hypertable::DfsBroker::FileDevice' follow
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):(.rodata._ZTIN10Hypertable9DfsBroker10FileSourceE[typeinfo
for Hypertable::DfsBroker::FileSource]+0x10): undefined reference to
`typeinfo for Hypertable::DfsBroker::FileDevice'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker10FileSourceE[vtable
for Hypertable::DfsBroker::FileSource]+0x10): undefined reference to
`Hypertable::DfsBroker::FileDevice::open(boost::intrusive_ptr<Hypertable::DfsBroker::Client>&,
std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::_Ios_Openmode)'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker10FileSourceE[vtable
for Hypertable::DfsBroker::FileSource]+0x14): undefined reference to
`Hypertable::DfsBroker::FileDevice::is_open() const'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker10FileSourceE[vtable
for Hypertable::DfsBroker::FileSource]+0x18): undefined reference to
`Hypertable::DfsBroker::FileDevice::read(char*, unsigned int)'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker10FileSourceE[vtable
for Hypertable::DfsBroker::FileSource]+0x1c): undefined reference to
`Hypertable::DfsBroker::FileDevice::bytes_read()'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker10FileSourceE[vtable
for Hypertable::DfsBroker::FileSource]+0x20): undefined reference to
`Hypertable::DfsBroker::FileDevice::length()'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker10FileSourceE[vtable
for Hypertable::DfsBroker::FileSource]+0x24): undefined reference to
`Hypertable::DfsBroker::FileDevice::write(char const*, unsigned int)'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker10FileSourceE[vtable
for Hypertable::DfsBroker::FileSource]+0x28): undefined reference to
`Hypertable::DfsBroker::FileDevice::bytes_written()'
/opt/hypertable/current/lib/libHypertable.a(LoadDataSourceFileDfs.cc.o):(.rodata._ZTVN10Hypertable9DfsBroker10FileSourceE[vtable
for Hypertable::DfsBroker::FileSource]+0x2c): undefined reference to
`Hypertable::DfsBroker::FileDevice::close()'
/opt/hypertable/current/lib/libHyperCommon.a(Config.cc.o): In function
`boost::filesystem::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem::path_traits>
boost::filesystem::current_path<boost::filesystem::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem::path_traits> >()':
Config.cc:(.text._ZN5boost10filesystem12current_pathINS0_10basic_pathISsNS0_11path_traitsEEEEET_v[boost::filesystem::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem::path_traits>
boost::filesystem::current_path<boost::filesystem::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem::path_traits> >()]+0x21): undefined reference to
`boost::filesystem::detail::get_current_path_api(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&)'
/opt/hypertable/current/lib/libHyperspace.a(HsCommandInterpreter.cc.o):
In function
`Hyperspace::HsCommandInterpreter::HsCommandInterpreter(Hyperspace::Session*)':
HsCommandInterpreter.cc:(.text+0x3e): undefined reference to
`Hypertable::CommandInterpreter::CommandInterpreter()'
/opt/hypertable/current/lib/libHyperspace.a(HsCommandInterpreter.cc.o):
In function
`Hyperspace::HsCommandInterpreter::HsCommandInterpreter(Hyperspace::Session*)':
HsCommandInterpreter.cc:(.text+0x6e): undefined reference to
`Hypertable::CommandInterpreter::CommandInterpreter()'
collect2: ld returned 1 exit status
any suggestion?
I'm not an expert in cpp, I tried to change the MakeFile in the example folder, as written into README.TXT and the output is the same.
Loris