Sri,

When I moved the build system from automake to cmake, I tried to build Avro
C++ with Visual Studio. I could get the dependencies (Boost, Flex and Bison)
installed. But finally, I stopped when FlexLexer.h failed to include
"iostream.h" which is an old style header.

It appears that Flex for windows is very old, there are workarounds using
cygwin (e.g.
http://www.thebinaryidiot.com/archives/2011/01/29/flex-2-5-35-and-win32-visu
al-studio-cpp/); I have not tried those. I suspect you'll encounter problems
with Bison as well.

One solution is not to use Flex and Bison. Avro C++ has a JSON parser and
generator buried inside. If one takes them out, one can write a schema
parser on top that (in the lines of Java and C# implementations). I was
planning to do something like that before I put in Avro RPC. I'm unlikely to
finish it in the next couple of weeks, at least.

Thanks

Thiru



-----Original Message-----
From: Srinidhi S [mailto:[email protected]] 
Sent: Monday, April 04, 2011 7:57 PM
To: [email protected]
Subject: How to build Avro C++ lib for Windows

Hi,

We are planning to use Avro messaging for some of the client programs
written in C++ on Windows. Can you please let us know the build steps
to build C++ Avro library?

Thanks,
Sri

Reply via email to