Hey everyone,
I'm trying to build a C++ client application with thrift and
I've been trying for hours to build the thrift library from source with Visual Studio 2017.
I just can't manage to succeed.

- I downloaded the Thrift sources (Version 0.11.0 from the website)
- Installed Boost (1.68.0)
- Compiled the libevent source
- Installed OpenSSL

I followed this instruction here
http://olivierhelin.com/blog/c-utils/using-apache-thrift-to-provide-cross-languages-communication

But I'm receiving the following errors:

...\src\thrift\transport\tbuffertransports.h(452): warning C4003: not enough actual parameters for macro 'max' ...\src\thrift\transport\tbuffertransports.h(452): error C2589: '(': illegal token on right side of '::' ...\src\thrift\transport\tbuffertransports.h(452): error C2062: type 'unknown-type' unexpected ...\src\thrift\transport\tbuffertransports.h(452): error C2059: syntax error: ')'
(about 7 times)

...\src\libevent-master\include\event.h(44): fatal error C1083: Cannot open include file: 'event2/event-config.h': No such file or directory
(twice, checked the event2 folder, and there is no event-config.h)

...\src\thrift\transport\thttpserver.cpp(24): fatal error C1083: Cannot open include file: 'thrift/config.h': No such file or directory
(once)

Is there another way to get the thrift libraries? It has to be done for C++...

Thanks in advance!

Alex

Reply via email to