Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Creating wrappers for C libraries
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-12-08 (11:41)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Creating wrappers for C libraries
On Fri, Dec 08, 2006 at 03:54:37PM +1100, Erik de Castro Lopo wrote:
> I've had a look at chapter 12 of the O'Rielly book as well as the
> wrapper for ocaml-fftw3 and cairo-ocaml and it all seems a little
> daunting.
> I was wondering if there was any semi-automated too for creating
> Ocaml bindings for C libraries.

Obviously there are some semi-automated ways, such as SWIG and camlidl
mentioned already.  But I would definitely urge you to look at doing
the wrapping by hand.  It's really not that hard, although you should
pay careful attention to ch18 of the manual.



Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology -
Internet Marketing and AdWords courses - - NEW!
Merjis blog - - NEW!