[
https://issues.apache.org/jira/browse/THRIFT-4121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James E. King, III closed THRIFT-4121.
--------------------------------------
Resolution: Information Provided
> Basic (test) configuration
> --------------------------
>
> Key: THRIFT-4121
> URL: https://issues.apache.org/jira/browse/THRIFT-4121
> Project: Thrift
> Issue Type: Question
> Components: C++ - Library
> Affects Versions: 0.10.0
> Environment: OS: Ubuntu 16.10
> IDE: Eclipse neon.2
> Programming language: c++
> Reporter: Denis Subotic
> Assignee: James E. King, III
> Labels: build, test
>
> Hello,
> I installed Thrift 0.10.0 on my Ubuntu 16.10 following the documentation on:
> {quote}
> https://thrift.apache.org/
> {quote}
> and after generating the source file from command:
> {quote}
> thrift --gen cpp my.thrift
> {quote}
> during compilation the project I get the following error:
> {quote}
> g++ -L/usr/local/lib -L/usr/share/gtksourceview-3.0/language-specs -o
> "TestThriftEclipse" ./ServerTest.o ./ServerTest_server.skeleton.o
> ./my_constants.o ./my_types.o
> ./ServerTest.o: In function `shared::ServerTestClient::recv_ping()':
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:175:
> undefined reference to
> `apache::thrift::TApplicationException::read(apache::thrift::protocol::TProtocol*)'
> makefile:44: recipe for target 'TestThriftEclipse' failed
> ./ServerTest.o: In function
> `shared::ServerTestProcessor::dispatchCall(apache::thrift::protocol::TProtocol*,
> apache::thrift::protocol::TProtocol*, std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, int, void*)':
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:207:
> undefined reference to
> `apache::thrift::TApplicationException::write(apache::thrift::protocol::TProtocol*)
> const'
> ./ServerTest.o: In function `shared::ServerTestProcessor::process_ping(int,
> apache::thrift::protocol::TProtocol*, apache::thrift::protocol::TProtocol*,
> void*)':
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:248:
> undefined reference to
> `apache::thrift::TApplicationException::write(apache::thrift::protocol::TProtocol*)
> const'
> ./ServerTest.o: In function `shared::ServerTestConcurrentClient::send_ping()':
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:285:
> undefined reference to
> `apache::thrift::async::TConcurrentClientSyncInfo::generateSeqId()'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:286:
> undefined reference to
> `apache::thrift::async::TConcurrentSendSentry::TConcurrentSendSentry(apache::thrift::async::TConcurrentClientSyncInfo*)'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:296:
> undefined reference to
> `apache::thrift::async::TConcurrentSendSentry::commit()'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:286:
> undefined reference to
> `apache::thrift::async::TConcurrentSendSentry::~TConcurrentSendSentry()'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:286:
> undefined reference to
> `apache::thrift::async::TConcurrentSendSentry::~TConcurrentSendSentry()'
> ./ServerTest.o: In function
> `shared::ServerTestConcurrentClient::recv_ping(int)':
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:309:
> undefined reference to
> `apache::thrift::async::TConcurrentRecvSentry::TConcurrentRecvSentry(apache::thrift::async::TConcurrentClientSyncInfo*,
> int)'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:312:
> undefined reference to
> `apache::thrift::async::TConcurrentClientSyncInfo::getPending(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&,
> apache::thrift::protocol::TMessageType&, int&)'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:318:
> undefined reference to
> `apache::thrift::TApplicationException::read(apache::thrift::protocol::TProtocol*)'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:321:
> undefined reference to
> `apache::thrift::async::TConcurrentRecvSentry::commit()'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:343:
> undefined reference to
> `apache::thrift::async::TConcurrentRecvSentry::commit()'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:309:
> undefined reference to
> `apache::thrift::async::TConcurrentRecvSentry::~TConcurrentRecvSentry()'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:347:
> undefined reference to
> `apache::thrift::async::TConcurrentClientSyncInfo::updatePending(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&,
> apache::thrift::protocol::TMessageType, int)'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:350:
> undefined reference to
> `apache::thrift::async::TConcurrentClientSyncInfo::waitForWork(int)'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest.cpp:309:
> undefined reference to
> `apache::thrift::async::TConcurrentRecvSentry::~TConcurrentRecvSentry()'
> ./ServerTest.o: In function
> `apache::thrift::TDispatchProcessor::process(boost::shared_ptr<apache::thrift::protocol::TProtocol>,
> boost::shared_ptr<apache::thrift::protocol::TProtocol>, void*)':
> /usr/local/include/thrift/TDispatchProcessor.h:117: undefined reference to
> `apache::thrift::GlobalOutput'
> /usr/local/include/thrift/TDispatchProcessor.h:117: undefined reference to
> `apache::thrift::TOutput::printf(char const*, ...)'
> ./ServerTest.o: In function `apache::thrift::concurrency::Mutex::~Mutex()':
> /usr/local/include/thrift/concurrency/Mutex.h:66: undefined reference to
> `vtable for apache::thrift::concurrency::Mutex'
> ./ServerTest_server.skeleton.o: In function `main':
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest_server.skeleton.cpp:37:
> undefined reference to
> `apache::thrift::transport::TServerSocket::TServerSocket(int)'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest_server.skeleton.cpp:41:
> undefined reference to
> `apache::thrift::server::TSimpleServer::TSimpleServer(boost::shared_ptr<apache::thrift::TProcessor>
> const&, boost::shared_ptr<apache::thrift::transport::TServerTransport>
> const&, boost::shared_ptr<apache::thrift::transport::TTransportFactory>
> const&, boost::shared_ptr<apache::thrift::protocol::TProtocolFactory> const&)'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest_server.skeleton.cpp:42:
> undefined reference to `apache::thrift::server::TServerFramework::serve()'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest_server.skeleton.cpp:41:
> undefined reference to
> `apache::thrift::server::TSimpleServer::~TSimpleServer()'
> /home/denis/workspace/TestThriftEclipse/Debug/../ServerTest_server.skeleton.cpp:41:
> undefined reference to
> `apache::thrift::server::TSimpleServer::~TSimpleServer()'
> {quote}
> Where am I doing wrong?
> Thanks,
> Denis
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)