thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Michalik <...@ift.uni.wroc.pl>
Subject Re: Default example not linking
Date Mon, 24 May 2010 14:35:11 GMT
On 15:20 2010-05-24 +0100, Arkaitz wrote:
> Hey,
> I did forget to add constants and types, but the result after adding them is
> the same.
> Could someone confirm that this works please?
> 
> g++-4.3 -o Something  Something_server.skeleton.cpp  media_service_types.cpp
> media_service_constants.cpp -I ../../../deps/thrift/build/include/thrift

Still missing Something.cpp.

> ../../../deps/thrift/build/lib/libthrift.a
> /tmp/ccq2zpq9.o: In function
> `Test::SomethingProcessor::SomethingProcessor(boost::shared_ptr<Test::SomethingIf>)':
> Something_server.skeleton.cpp:(.text._ZN4Test18SomethingProcessorC1EN5boost10shared_ptrINS_11SomethingIfEEE[Test::SomethingProcessor::SomethingProcessor(boost::shared_ptr<Test::SomethingIf>)]+0x14):
> undefined reference to `vtable for Test::SomethingProcessor'
> Something_server.skeleton.cpp:(.text._ZN4Test18SomethingProcessorC1EN5boost10shared_ptrINS_11SomethingIfEEE[Test::SomethingProcessor::SomethingProcessor(boost::shared_ptr<Test::SomethingIf>)]+0x28):
> undefined reference to `vtable for Test::SomethingProcessor'
> Something_server.skeleton.cpp:(.text._ZN4Test18SomethingProcessorC1EN5boost10shared_ptrINS_11SomethingIfEEE[Test::SomethingProcessor::SomethingProcessor(boost::shared_ptr<Test::SomethingIf>)]+0x8e):
> undefined reference to `Test::SomethingProcessor::process_ping(int,
> apache::thrift::protocol::TProtocol*, apache::thrift::protocol::TProtocol*)'
> collect2: ld returned 1 exit status
> 

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

Pozdrawiam,
Łukasz P. Michalik

Mime
View raw message