0

ubuntu で EverNote API をビルドしようとしています。Thrift ライブラリをダウンロードし、API ファイルをライブラリにリンクしました。API をコンパイルしようとすると、次のエラーが発生します。

/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
NoteStore.o: In function `evernote::edam::NoteStoreProcessor::process_fn(apache::thrift::protocol::TProtocol*, apache::thrift::protocol::TProtocol*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, int)':
NoteStore.cpp:(.text+0xc9ad): undefined reference to `apache::thrift::TApplicationException::write(apache::thrift::protocol::TProtocol*) const'

これを修正する方法はありますか?

4

1 に答える 1

0

ライブラリをコンパイルするには、http: //thrift.apache.org/download/から入手できるThriftヘッダーファイルにリンクするだけです。次に、それがインストールされたら、ライブラリとしてコンパイルします。これは、将来同じ問題を抱えている可能性のある人にとっては私の間違いでした。

于 2011-07-28T21:44:14.570 に答える