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 BAA11301; Thu, 23 Oct 2003 01:26:49 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA00612 for ; Thu, 23 Oct 2003 01:26:48 +0200 (MET DST) Received: from tornado.force (cs1-ats25-dzer-134.dialup.mts-nn.ru [213.177.121.134]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h9MNQj117634 for ; Thu, 23 Oct 2003 01:26:46 +0200 (MET DST) Received: from tornado.force (tornado.force [127.0.0.1]) by tornado.force (8.12.8/8.12.8) with ESMTP id h9MNQE3s002989; Thu, 23 Oct 2003 03:26:26 +0400 Received: (from kamil@localhost) by tornado.force (8.12.8/8.12.8/Submit) id h9MNPgsi002987; Thu, 23 Oct 2003 03:25:42 +0400 X-Authentication-Warning: tornado.force: kamil set sender to kamils@inbox.ru using -f X-Comment-To: "Dan Koppel" To: "Dan Koppel" Cc: caml-list@inria.fr Subject: Re: [Caml-list] Question about linking C++ and OCAML References: <001a01c398ce$f92348f0$a3fb6c44@Singularity> Organization: niimash From: Kamil Shakirov Date: Thu, 23 Oct 2003 03:25:42 +0400 In-Reply-To: <001a01c398ce$f92348f0$a3fb6c44@Singularity> (Dan Koppel's message of "Wed, 22 Oct 2003 12:02:00 -0700") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 cox:99 subroutine:01 motion-twin:01 compiler:01 cmxa:01 ocaml:01 ocaml:01 stubs:01 interfaces:01 writes:01 linking:02 cma:03 dll:03 interface:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, "Dan Koppel" writes: > Hello all, > > I'm new to OCAML. I have written C++ code which needs to call a > OCAML subroutine (written by somebody else). I'm using a Windows > XP/Pentium 4 system and have the Microsoft Visual C++ compiler. I > was wondering if anybody has experience doing this and could kindly > give me some instructions on how to accomplish this. You may use the ODLL tool from the http://tech.motion-twin.com/ ``ODLL is creating a Win32 DLL from an OCaml library, and automatically generating the C stubs needed to interface the OCaml code and the C code and the .H interface. Simply run ODLL with you CMA/CMXA and one or several CMI interfaces and ODLL will do the job for you.'' I hope it helps you. > With much appreciation, > Dan Koppel > UCSB, Santa Barbara, California -- Kamil Shakirov ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners