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 8B40FBC69 for ; Wed, 2 May 2007 13:56:03 +0200 (CEST) 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 l42BtxwC020181 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 2 May 2007 13:56:03 +0200 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1HjDQw-0007oz-00; Wed, 02 May 2007 12:55:46 +0100 Date: Wed, 2 May 2007 12:55:46 +0100 To: guanhua he Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] How to use C++ library iin OCaml? Message-ID: <20070502115517.GA27473@furbychan.cocan.org> References: <20070502084159.137F8BC82@yquem.inria.fr> <46385CA3.4070101@dur.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46385CA3.4070101@dur.ac.uk> User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at concorde with ID 46387C50.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 0100,:01 ocaml:01 mangling:01 wrote:01 caml-list:01 exceptions:01 caml:02 library:03 library:03 tricky:04 manual:06 docs:06 inria:06 uses:06 On Wed, May 02, 2007 at 10:40:51AM +0100, guanhua he wrote: > Does anyone know can I use C++ library in OCaml and how? Read: http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html You'll have problems with the C++ name mangling, and it'll be tricky if the library uses lots of templates, exceptions or even complicated object features, but in principle it should be possible. Which library? Rich. -- Richard Jones Red Hat