2011-07-28 3 views
0

우분투에서 EverNote API를 빌드하려고합니다. Thrift 라이브러리를 다운로드하고 API 파일을 라이브러리에 연결했습니다. API를 컴파일하려고하면 다음 오류가 발생합니다.EverNote 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' 

이 문제를 해결하는 방법은 무엇입니까?

답변

0

라이브러리를 컴파일하려면 여기에서 얻을 수있는 Thrift 헤더 파일에 연결하십시오 : http://thrift.apache.org/download/. 그런 다음 설치되면 라이브러리로 컴파일하십시오. 그것은 미래에 같은 문제가있는 사람에게는 나의 실수였습니다.