From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA27256; Fri, 30 Mar 2001 11:24:37 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA27218 for ; Fri, 30 Mar 2001 11:24:36 +0200 (MET DST) Received: from mumnunah.cs.mu.OZ.AU (mail-gate.cs.mu.oz.au [198.142.254.221]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f2U9OUX25624 for ; Fri, 30 Mar 2001 11:24:31 +0200 (MET DST) Received: from hg.cs.mu.oz.au (root@hg.cs.mu.OZ.AU [128.250.25.19]) by mumnunah.cs.mu.OZ.AU with ESMTP id TAA19665; Fri, 30 Mar 2001 19:24:08 +1000 (EST) Received: (from fjh@localhost) by hg.cs.mu.oz.au (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id TAA12086; Fri, 30 Mar 2001 19:24:05 +1000 Date: Fri, 30 Mar 2001 19:24:05 +1000 From: Fergus Henderson To: Bruce Hoult Cc: David Chemouil , caml-list@inria.fr Subject: Re: [Caml-list] Interfacing C++ and Ocaml Message-ID: <20010330192405.A12080@hg.cs.mu.oz.au> References: <3AC449BF.A91A54E8@irit.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On 30-Mar-2001, Bruce Hoult wrote: > I'm no expert on Caml, so maybe the wizards have done something > clever, but interfacing other languages to C++ is normally best done > by writing an adaptor in C++ that provides a pure C interface to the > C++ code (usable by C code, compiled by a C compiler, not C++), and In particular defining the C++ functions in your adaptor code as `extern "C"' so that they can be called from C code. -- Fergus Henderson | "I have always known that the pursuit | of excellence is a lethal habit" WWW: | -- the last words of T. S. Garp. ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr