Hi Leonardo, In BAP project we're building C++ bindings with oasis+ocamlbuild. Look at `cxx_rule` in `myocamlbuild.ml.in` file, definitions like `cxx` and `cxx_flags` in `setup.ml.in` and, of course, `_oasis` Feel free to ask any questions, Regards, Ivan [1]: https://github.com/BinaryAnalysisPlatform/bap On Fri, Feb 27, 2015 at 5:40 PM, Leonardo Laguna Ruiz wrote: > Hi, > > I’m working on a library which wraps functions and clases written in C++. > I’m trying to setup a build system based in oasis but I haven’t found any > example on how to do it. > > So far I have been able of compiling my test programs using cmake and > ocamlbuild. I use cmake to generate a static library out of my C++ file. > Then I call ocamlbuild (from cmake) to generate a object file from my main > file (main.native.o). Finally I link everything using cmake. > > I have tried to link the my test program with ocambuild by passing all the > necessary flags (use stdlib=libc++ and link CoreFoundation and IOKit in OS > X) but I haven’t succeeded using ocamlbuild (or oasis). > > Does anyone has an example on how to build a library that uses C++ code? > > Thanks, > > Leonardo > > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs