我已经安装了超表/opt/hypertable/current/
,我从超表运行了一个示例程序......
#include <Common/Compat.h>
#include <iostream>
#include <fstream>
#include <string>
#include <Common/System.h>
#include <Common/Error.h>
#include <Hypertable/Lib/Client.h>
#include <Hypertable/Lib/KeySpec.h>
using namespace Hypertable;
int main(int argc, char* argv[]) {
ClientPtr client_ptr;
TablePtr table_ptr;
TableMutatorPtr mutator_ptr;
KeySpec key;
const char* install_dir = "/opt/hypertable/current/";
client_ptr = new Client( System::locate_install_dir(install_dir) );
}
我收到了这个错误
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/testes.d" -MT"src/testes.d" -o"src/testes.o" "../src/testes.cpp"
../src/testes.cpp:1: fatal error: Common/Compat.h: No such file or directory
我使用 eclipse CDT 进行开发,并使用项目进行链接Properties->c/c++build->setting->Libraries->LibrarySetPath(-L)
,并且我已将其标记为HyperCommon also in -l
我将其设置为/opt/hypertable/current/include/
任何人都可以告诉我您收到此错误...