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:14:48 GMT
On 14:51 2010-05-24 +0100, Arkaitz wrote:
> Hi  all,
> 
> I'm using incubation 0.2.0 tarball available in the webpage and not
> modifying the skeleton file.
> 
> Any workaround for this?
> 
> _____________________
> namespace cpp Test
> 
> service Something {
>   i32 ping()
> }
> ------------------------------------
> 
> 
> g++ -o Something Something_server.skeleton.cpp -I
> ../../../deps/thrift/build/include/thrift
> ../../../deps/thrift/build/lib/libthrift.a
> /tmp/ccZVIJlC.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>)]+0x13):
> undefined reference to `vtable for Test::SomethingProcessor'
> Something_server.skeleton.cpp:(.text._ZN4Test18SomethingProcessorC1EN5boost10shared_ptrINS_11SomethingIfEEE[Test::SomethingProcessor::SomethingProcessor(boost::shared_ptr<Test::SomethingIf>)]+0x27):
> undefined reference to `vtable for Test::SomethingProcessor'
> Something_server.skeleton.cpp:(.text._ZN4Test18SomethingProcessorC1EN5boost10shared_ptrINS_11SomethingIfEEE[Test::SomethingProcessor::SomethingProcessor(boost::shared_ptr<Test::SomethingIf>)]+0x8d):
> undefined reference to `Test::SomethingProcessor::process_ping(int,
> apache::thrift::protocol::TProtocol*, apache::thrift::protocol::TProtocol*)'

You didn't compile and link in other generated sources.  That probably
means Something.cpp, something_types.cpp and something_constants.cpp
in your case.

> 
> Thanks
> 
> --
> Arkaitz

-- 
Pozdrawiam,
Łukasz P. Michalik

Mime
View raw message