[ 
https://issues.apache.org/jira/browse/THRIFT-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiaoshuang LU updated THRIFT-3518:
----------------------------------
    Description: 
$. thrift file
{code}
namespace cpp test

service TestService
{
    i32 test(1:i32 data1, 2:string data2);
}
{code}

$. compile thrift file
{code}
thrift --strict --gen cpp --out . TestService.thrift
{code}

$. build with Visual Studio
{code}
Severity        Code    Description     Project File    Line
Error   LNK2019 unresolved external symbol "public: __cdecl 
apache::thrift::async::TConcurrentSendSentry::TConcurrentSendSentry(class 
apache::thrift::async::TConcurrentClientSyncInfo *)" 
(??0TConcurrentSendSentry@async@thrift@apache@@QEAA@PEAVTConcurrentClientSyncInfo@123@@Z)
 referenced in function "public: int __cdecl 
test::TestServiceConcurrentClient::send_test(int,class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const &)" 
(?send_test@TestServiceConcurrentClient@test@@QEAAHHAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)

blah blah blah
{code}

> TConcurrentClientSyncInfo files were missing for Visual Studio
> --------------------------------------------------------------
>
>                 Key: THRIFT-3518
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3518
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.9.3
>            Reporter: Xiaoshuang LU
>            Priority: Blocker
>             Fix For: 0.9.4
>
>         Attachments: THRIFT-3518.patch
>
>
> $. thrift file
> {code}
> namespace cpp test
> service TestService
> {
>     i32 test(1:i32 data1, 2:string data2);
> }
> {code}
> $. compile thrift file
> {code}
> thrift --strict --gen cpp --out . TestService.thrift
> {code}
> $. build with Visual Studio
> {code}
> Severity      Code    Description     Project File    Line
> Error LNK2019 unresolved external symbol "public: __cdecl 
> apache::thrift::async::TConcurrentSendSentry::TConcurrentSendSentry(class 
> apache::thrift::async::TConcurrentClientSyncInfo *)" 
> (??0TConcurrentSendSentry@async@thrift@apache@@QEAA@PEAVTConcurrentClientSyncInfo@123@@Z)
>  referenced in function "public: int __cdecl 
> test::TestServiceConcurrentClient::send_test(int,class 
> std::basic_string<char,struct std::char_traits<char>,class 
> std::allocator<char> > const &)" 
> (?send_test@TestServiceConcurrentClient@test@@QEAAHHAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
> blah blah blah
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to