EverNote API编译错误

EverNote API compilation error

本文关键字:错误 编译 API EverNote      更新时间:2023-10-16

我正在尝试在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'

你知道怎么解决这个问题吗?

要编译这个库,只需链接到Thrift头文件,您可以在这里获得:http://thrift.apache.org/download/。一旦安装完成,将其编译为LIBRARY。对于将来可能遇到同样问题的人来说,这是我的错误。