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=1.1 required=5.0 tests=AWL,SPF_SOFTFAIL 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 7E6DEBC69 for ; Wed, 2 May 2007 14:25:01 +0200 (CEST) Received: from hermes2.dur.ac.uk (hermes2.dur.ac.uk [129.234.8.21]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l42CP0k0028767 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 2 May 2007 14:25:01 +0200 Received: from smtphost3.dur.ac.uk (smtphost3.dur.ac.uk [129.234.4.55]) by hermes2.dur.ac.uk (8.13.8/8.13.7) with ESMTP id l42COlBI009575; Wed, 2 May 2007 13:24:51 +0100 Received: from [129.234.198.88] (guan@e-sci88.dur.ac.uk [129.234.198.88]) by smtphost3.dur.ac.uk (8.13.8/8.11.7) with ESMTP id l42COixO025865; Wed, 2 May 2007 13:24:46 +0100 Message-ID: <46388306.60602@dur.ac.uk> Date: Wed, 02 May 2007 13:24:38 +0100 From: guanhua he User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: Richard Jones Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] How to use C++ library iin OCaml? References: <20070502084159.137F8BC82@yquem.inria.fr> <46385CA3.4070101@dur.ac.uk> <20070502115517.GA27473@furbychan.cocan.org> In-Reply-To: <20070502115517.GA27473@furbychan.cocan.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DurhamAcUk-MailScanner: Found to be clean, Found to be clean X-Miltered: at concorde with ID 4638831C.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 solver:01 solver:01 0100,:01 mangling:01 sourceforge:01 wrote:01 wrote:01 caml-list:01 exceptions:01 caml:02 btw:02 library:03 library:03 Hi, Rich, Thanks for your reply. I'd like to use the Parma Polyhedra Library (http://www.cs.unipr.it/ppl/) to solve the convex-hull and widening problems. Does it work in ocaml? Or any other good tools for ocaml? BTW, does ocaml work with the LP_solver(http://lpsolve.sourceforge.net/5.5/) library? Or is there any good LP solver for ocaml? Thanks Guan Richard Jones wrote: > 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. > >