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

要编译库,只需链接到 Thrift 头文件即可:http: //thrift.apache.org/download/。然后一旦安装,将其编译为库。对于将来可能遇到同样问题的人来说,这是我的错误。

于 2011-07-28T21:44:14.570 回答