From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id B7449BC0B for ; Fri, 8 Dec 2006 12:41:36 +0100 (CET) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id kB8BfZds005166 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 8 Dec 2006 12:41:36 +0100 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1Gse6W-0007sI-00; Fri, 08 Dec 2006 11:41:24 +0000 Date: Fri, 8 Dec 2006 11:41:24 +0000 To: Erik de Castro Lopo Cc: caml-list@inria.fr Subject: Re: [Caml-list] Creating wrappers for C libraries Message-ID: <20061208114124.GA26045@furbychan.cocan.org> References: <20061208155437.7ed85c4f.mle+ocaml@mega-nerd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061208155437.7ed85c4f.mle+ocaml@mega-nerd.com> User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at concorde with ID 45794F6F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; wrappers:01 ocaml:01 bindings:01 swig:01 camlidl:01 blog:98 blog:98 wrote:01 caml-list:01 caml:02 seems:03 chapter:04 erik:04 fri:05 dec:05 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. Rich. ch18: http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Internet Marketing and AdWords courses - http://merjis.com/courses - NEW! Merjis blog - http://blog.merjis.com - NEW!