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 ../../../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 Thanks -- Arkaitz 2010/5/24 Łukasz Michalik <[email protected]> > 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 >
