にハイパーテーブルをインストールし、ハイパー/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/
誰でもこのエラーが発生していることを教えてくれます...