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=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 209A3BC0A for ; Tue, 2 Jan 2007 11:32:36 +0100 (CET) Received: from smtp.syd.people.net.au (smtp.syd.people.net.au [218.214.225.98]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id l02AWWV1028926 for ; Tue, 2 Jan 2007 11:32:34 +0100 Received: (qmail 3782 invoked from network); 2 Jan 2007 10:32:45 -0000 Received: from unknown (HELO coltrane.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 2 Jan 2007 10:32:45 -0000 Received: from coltrane (coltrane [192.168.1.101]) by coltrane.mega-nerd.net (Postfix) with SMTP id 312177B9A for ; Tue, 2 Jan 2007 21:32:22 +1100 (EST) Date: Tue, 2 Jan 2007 21:32:21 +1100 From: Erik de Castro Lopo To: caml-list@yquem.inria.fr Subject: Wrapping C++ in Ocaml? Message-Id: <20070102213221.952a4d3f.mle+ocaml@mega-nerd.com> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed version 2.3.0beta5 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 459A34C0.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 doable:01 pointers:01 cheers:01 library:03 library:03 erik:04 erik:04 useful:08 consider:09 libraries:11 libraries:11 think:12 mle:13 Hi all, I have wrapped a C library for use with Ocaml and didn't find the task too daunting. I have now found a C++ library that would be useful, but the Ocaml ORA book makes no mention of wrapping C++ libraries. Has anyone got any experience wrapping C++ libraries in Ocaml? Is it possible? Painful but doable? Too painful to think about? Any pointers or advice appreciated. Cheers, Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "I consider C++ the most significant technical hazard to the survival of your project and do so without apologies." -- Alistair Cockburn