README.md
1
2This is the ocaml tutorial example. It assumes that you've already
3built and installed the thrift ocaml runtime libraries in lib/ocaml.
4
5To compile this, you will need to generate the Thrift sources for
6ocaml in this directory (due to limitations in the OASIS build-tool):
7
8 % thrift -r --gen ocaml ../tutorial.thrift
9 % oasis setup
10 % make
11
12This will produce two executables Calc{Server,Client}.<type> where
13<type> is one of "byte" or "native", depending on your ocaml
14installation. Just run the server in the background, then the client
15(as you would do for the C++ example).
16