[ 
https://issues.apache.org/jira/browse/THRIFT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034318#comment-13034318
 ] 

Basudev Chaudhuri commented on THRIFT-1123:
-------------------------------------------

Dragan and James, 

Thank you both for your great work. I really want to use thrift more and 
windows c++ support for the runtime has been a serious issue for me. Everything 
compiled great with Visual Studio 10.

I was wondering if either of you know whether your changes, with some 
modifications, can be applied to the MinGW compile. I use the QtSDK 1.1, and 
the MinGW that comes with it. So there is no autoconf in the system or the 
setup to run bootstrap.sh.

I did try to understand what it would take, and as a first test tried to just 
compile the same source as that for VS (with the patches in 1123). 
I defined _WIN32 for the build. Unfortunately I'm running into issues with the 
tr1 namespace. 
{panel:color=grey}
In file included from ..\..\src\concurrency\ThreadManager.cpp:20:
..\..\src\concurrency\/ThreadManager.h:61: error: 'std::tr1' has not been 
declared
..\..\src\concurrency\/ThreadManager.h:61: error: ISO C++ forbids declaration 
of 'function' with no type
..\..\src\concurrency\/ThreadManager.h:61: error: typedef name may not be a 
nested-name-specifier
..\..\src\concurrency\/ThreadManager.h:61: error: expected ';' before '<' token
..\..\src\concurrency\/ThreadManager.h:182: error: 'ExpireCallback' has not 
been declared
...
{panel}
Note that defining either _WIN32, or MINGW or both, all result in the same 
error. 

Sorry if this is the wrong place to bring this up, but in based on my 
experience so far (albeit limited) the plain non-nix MinGW setup and the VS 
setup should be pretty similar. Anything to push me in the right direction 
would be greatly appreciated.

Thanks again.

> Patch to compile Thrift server and client for vc++ 9.0 and 10.0
> ---------------------------------------------------------------
>
>                 Key: THRIFT-1123
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1123
>             Project: Thrift
>          Issue Type: Improvement
>          Components: C++ - Library
>         Environment: Windows XP 32bit, vc++ 9.0, 10.0
>            Reporter: Dragan Okiljevic
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: 
> additional_thrift_cpp_visual_studio_2008_and_2010_endians_patch(concerning_ticket_1123_and_possibly_1031_patches).patch,
>  thrift_msvc_client_and_server.patch
>
>
> Extension of THRIFT-1031 patch published by James Dickson
> This patch is intended to provide Thrift C/C++ functionality on WIN32 
> platforms.
> The implementation is built on top of the patch "Patch to compile Thrift for 
> vc++ 9.0 and 10.0" by James Dickson published as THRIFT-1031. I just used 
> this code and ported more Thrieft C/C++ to WIN32 and added them to original 
> VC projects created in THRIFT-1031.
> I express my gratitude to Mr. Dickson as his post gave me the roadmap how to 
> do the additional changes, that I hope, would be useful for the rest of the 
> community too.
> Besides client capabilities enabled in THRIFT-1031, the library can now be 
> used for building Thrift servers and using concurrency features. The dir/file 
> structure from THRIFT-1031 and usage of Config.h header for providing support 
> for both WIN32 and *NIX remains.
> The implementation was tested briefly on MSVC2008, MSVC2010 and Ubuntu, 
> communicating between C/C++ clients and servers and Java clients and servers. 
> As the author needs all of this functionality for one of his projects, the 
> testing and debugging will continue.
> Revision 1086435 from March, 28, 2011. was used for development and creation 
> of patch, but it should be possible to apply it on current trunk revision as 
> long as no changes are made to patched files in trunk.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to