OCaml Forge
SCM

Caml Foreign Home

From Caml Foreign dynamic interface to C/C++ Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with "Caml Foreign is a Caml library to access C and C++ functions without writing C wrapping code. Instead, you write OCaml wrapping code. There is some functionality to cope with C++…")
Line 1: Line 1:
Caml Foreign is a Caml library to access C and C++ functions without writing C wrapping code. Instead, you write OCaml wrapping code. There is some functionality to cope with C++ classes : dynamic casting, constructors, destructors, methods.
Caml Foreign is a Caml library to access C and C++ functions without writing C wrapping code. Instead, you write OCaml wrapping code. There is some functionality to cope with C++ classes : dynamic casting, constructors, destructors, methods.
-
At the moment it is Linux-only, gcc-only, unstable and experimental. It is poorly tested and has some bugs that cause crashes. Also, it is undocumented.
+
At the moment it is Linux-only, gcc-only, and experimental. It is lightly tested. Also, it is mostly undocumented.
Get the code using darcs :
Get the code using darcs :

Revision as of 22:43, 15 February 2011

Caml Foreign is a Caml library to access C and C++ functions without writing C wrapping code. Instead, you write OCaml wrapping code. There is some functionality to cope with C++ classes : dynamic casting, constructors, destructors, methods.

At the moment it is Linux-only, gcc-only, and experimental. It is lightly tested. Also, it is mostly undocumented.

Get the code using darcs :

 darcs get https://forge.ocamlcore.org/anonscm/darcs/caml-foreign/caml-foreign

You can send patches using

darcs send
# (sends to caml-foreign-devel@lists.forge.ocamlcore.org by default)

The build system uses Oasis. In order to build and test the library, you need libffi-dev and oasis installed:

 oasis setup-dev
 ocaml setup.ml -configure
 ocaml setup.ml -build
 ocaml setup.ml -test

Caml-foreign is based on libffi.

Development

Personal tools
Navigation