[
https://issues.apache.org/jira/browse/THRIFT-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
zengraoli updated THRIFT-3810:
------------------------------
Description:
{color:red}
*strong*$. add TestServer.thrift
{color}
{code}
namespace cpp zam.thrift.test
namespace py thriftTest
namespace java com.zam.thrift.test
namespace php thriftTest
service Hello {
string helloString(1:string word)
}
{code}
{color:red}
$. compile TestServer.thrift
{color}
{code}
thrift --strict --gen cpp --out . TestServer.thrift
{code}
{color:red}
$. copy build c++ code in Visual Studio and run, tips unresolved external
symbol :
{color}
{code}
"public: virtual void __cdecl
apache::thrift::server::TServerFramework::serve(void)"
(?serve@TServerFramework@server@thrift@apache@@UEAAXXZ)
"public: virtual void __cdecl
apache::thrift::server::TServerFramework::serve(void)"
(?serve@TServerFramework@server@thrift@apache@@UEAAXXZ)
"public: __cdecl
apache::thrift::server::TServerFramework::TServerFramework(class
boost::shared_ptr<class apache::thrift::TProcessorFactory> const &,class
boost::shared_ptr<class apache::thrift::transport::TServerTransport> const
&,class boost::shared_ptr<class apache::thrift::transport::TTransportFactory>
const &,class boost::shared_ptr<class
apache::thrift::protocol::TProtocolFactory> const &)"
(??0TServerFramework@server@thrift@apache@@QEAA@AEBV?$shared_ptr@VTProcessorFactory@thrift@apache@@@boost@@AEBV?$shared_ptr@VTServerTransport@transport@thrift@apache@@@5@AEBV?$shared_ptr@VTTransportFactory@transport@thrift@apache@@@5@AEBV?$shared_ptr@VTProtocolFactory@protocol@thrift@apache@@@5@@Z),该符号在函数
"public: __cdecl apache::thrift::server::TSimpleServer::TSimpleServer(class
boost::shared_ptr<class apache::thrift::TProcessorFactory> const &,class
boost::shared_ptr<class apache::thrift::transport::TServerTransport> const
&,class boost::shared_ptr<class apache::thrift::transport::TTransportFactory>
const &,class boost::shared_ptr<class
apache::thrift::protocol::TProtocolFactory> const &)"
(??0TSimpleServer@server@thrift@apache@@QEAA@AEBV?$shared_ptr@VTProcessorFactory@thrift@apache@@@boost@@AEBV?$shared_ptr@VTServerTransport@transport@thrift@apache@@@5@AEBV?$shared_ptr@VTTransportFactory@transport@thrift@apache@@@5@AEBV?$shared_ptr@VTProtocolFactory@protocol@thrift@apache@@@5@@Z)
{code}
{color:red}
$.why error is occur of TServerFramework file?
{color}
was:
$. add TestServer.thrift
{code}
namespace cpp zam.thrift.test
namespace py thriftTest
namespace java com.zam.thrift.test
namespace php thriftTest
service Hello {
string helloString(1:string word)
}
{code}
$. compile TestServer.thrift
{code}
thrift --strict --gen cpp --out . TestServer.thrift
{code}
$. copy build c++ code in Visual Studio and run, tips unresolved external
symbol :
{code}
"public: virtual void __cdecl
apache::thrift::server::TServerFramework::serve(void)"
(?serve@TServerFramework@server@thrift@apache@@UEAAXXZ)
"public: virtual void __cdecl
apache::thrift::server::TServerFramework::serve(void)"
(?serve@TServerFramework@server@thrift@apache@@UEAAXXZ)
"public: __cdecl
apache::thrift::server::TServerFramework::TServerFramework(class
boost::shared_ptr<class apache::thrift::TProcessorFactory> const &,class
boost::shared_ptr<class apache::thrift::transport::TServerTransport> const
&,class boost::shared_ptr<class apache::thrift::transport::TTransportFactory>
const &,class boost::shared_ptr<class
apache::thrift::protocol::TProtocolFactory> const &)"
(??0TServerFramework@server@thrift@apache@@QEAA@AEBV?$shared_ptr@VTProcessorFactory@thrift@apache@@@boost@@AEBV?$shared_ptr@VTServerTransport@transport@thrift@apache@@@5@AEBV?$shared_ptr@VTTransportFactory@transport@thrift@apache@@@5@AEBV?$shared_ptr@VTProtocolFactory@protocol@thrift@apache@@@5@@Z),该符号在函数
"public: __cdecl apache::thrift::server::TSimpleServer::TSimpleServer(class
boost::shared_ptr<class apache::thrift::TProcessorFactory> const &,class
boost::shared_ptr<class apache::thrift::transport::TServerTransport> const
&,class boost::shared_ptr<class apache::thrift::transport::TTransportFactory>
const &,class boost::shared_ptr<class
apache::thrift::protocol::TProtocolFactory> const &)"
(??0TSimpleServer@server@thrift@apache@@QEAA@AEBV?$shared_ptr@VTProcessorFactory@thrift@apache@@@boost@@AEBV?$shared_ptr@VTServerTransport@transport@thrift@apache@@@5@AEBV?$shared_ptr@VTTransportFactory@transport@thrift@apache@@@5@AEBV?$shared_ptr@VTProtocolFactory@protocol@thrift@apache@@@5@@Z)
{code}
$.why error is occur of TServerFramework file?
> unresolved external symbol "public: virtual void __cdecl
> apache::thrift::server::TServerFramework::serve(void)"
> (?serve@TServerFramework@server@thrift@apache@@UEAAXXZ)
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: THRIFT-3810
> URL: https://issues.apache.org/jira/browse/THRIFT-3810
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Library
> Affects Versions: 0.9.3
> Environment: Virtual studio 2013 and windows 7
> Reporter: zengraoli
> Fix For: 0.10.0
>
>
> {color:red}
> *strong*$. add TestServer.thrift
> {color}
> {code}
> namespace cpp zam.thrift.test
> namespace py thriftTest
> namespace java com.zam.thrift.test
> namespace php thriftTest
> service Hello {
> string helloString(1:string word)
> }
> {code}
> {color:red}
> $. compile TestServer.thrift
> {color}
> {code}
> thrift --strict --gen cpp --out . TestServer.thrift
> {code}
> {color:red}
> $. copy build c++ code in Visual Studio and run, tips unresolved external
> symbol :
> {color}
> {code}
> "public: virtual void __cdecl
> apache::thrift::server::TServerFramework::serve(void)"
> (?serve@TServerFramework@server@thrift@apache@@UEAAXXZ)
> "public: virtual void __cdecl
> apache::thrift::server::TServerFramework::serve(void)"
> (?serve@TServerFramework@server@thrift@apache@@UEAAXXZ)
> "public: __cdecl
> apache::thrift::server::TServerFramework::TServerFramework(class
> boost::shared_ptr<class apache::thrift::TProcessorFactory> const &,class
> boost::shared_ptr<class apache::thrift::transport::TServerTransport> const
> &,class boost::shared_ptr<class apache::thrift::transport::TTransportFactory>
> const &,class boost::shared_ptr<class
> apache::thrift::protocol::TProtocolFactory> const &)"
> (??0TServerFramework@server@thrift@apache@@QEAA@AEBV?$shared_ptr@VTProcessorFactory@thrift@apache@@@boost@@AEBV?$shared_ptr@VTServerTransport@transport@thrift@apache@@@5@AEBV?$shared_ptr@VTTransportFactory@transport@thrift@apache@@@5@AEBV?$shared_ptr@VTProtocolFactory@protocol@thrift@apache@@@5@@Z),该符号在函数
> "public: __cdecl apache::thrift::server::TSimpleServer::TSimpleServer(class
> boost::shared_ptr<class apache::thrift::TProcessorFactory> const &,class
> boost::shared_ptr<class apache::thrift::transport::TServerTransport> const
> &,class boost::shared_ptr<class apache::thrift::transport::TTransportFactory>
> const &,class boost::shared_ptr<class
> apache::thrift::protocol::TProtocolFactory> const &)"
> (??0TSimpleServer@server@thrift@apache@@QEAA@AEBV?$shared_ptr@VTProcessorFactory@thrift@apache@@@boost@@AEBV?$shared_ptr@VTServerTransport@transport@thrift@apache@@@5@AEBV?$shared_ptr@VTTransportFactory@transport@thrift@apache@@@5@AEBV?$shared_ptr@VTProtocolFactory@protocol@thrift@apache@@@5@@Z)
> {code}
> {color:red}
> $.why error is occur of TServerFramework file?
> {color}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)