Making Thrift Calls from C ++ - Windows Applications

As the name says, I have a Windows application written in C ++ from which I need to make calls to Thrift remote services, and I lost this topic a little, to be honest. http://wiki.apache.org/thrift/ThriftInstallationWin32 states that "The Thrift C ++ runtime library does not currently work on Windows." Does that mean I'm shit out of luck, or is there a workaround?

+7
c ++ windows thrift
source share
3 answers

I put Thrift on Windows / C ++ for my own application. Its open-source, so other people are free to use it: http://peoplesnote.codeplex.com/SourceControl/list/changesets

+5
source share

This may not be an elegant solution, but at least it should work:

According to the Thrift Wiki, there are C # objects, but they really should be called .NET bindings: they don't have any C # specifics. Thus, you can implement your communication library in the C ++ / CLI DLL and refer to it as a .dll from unmanaged code.

+3
source share

This page seems pretty simple. They tell you how to make a Thrift compiler, but explicitly state that the metacode from it will not compile under Windows.

That way, without getting someone to figure out how to compile it under Windows, you bad luck.

Honestly, I don’t see how it will be so expensive, especially since Cygwin pretty well provides everything you need to compile UNIX sources for Windows. I can only assume that they should use some pretty esoteric UNIX functions.

There are several approaches:

1 / Since he entered the Apache incubator, there may be Windows support plans (although I cannot find them). If it is truly open source and the need is identified, then someone will probably start porting runtimes to Windows. You may not be able to wait.

2 / Why the world is needed; another RPC mechanism is outside of me. But you could use one of the existing RPC mechanisms (SUN / ONC) or your own RPC protocol to communicate from a Windows window with a UNIX box, which then redirects RPC through Thrift. But this is a coolge, and I would not have done it from a principal.

Also, there is not much that I can offer, sorry. Good luck.

+1
source share

All Articles