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 VAA17535; Wed, 22 Oct 2003 21:02:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 VAA13576 for ; Wed, 22 Oct 2003 21:02:01 +0200 (MET DST) Received: from fed1mtao02.cox.net (fed1mtao02.cox.net [68.6.19.243]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h9MJ1x108168 for ; Wed, 22 Oct 2003 21:01:59 +0200 (MET DST) Received: from Singularity ([68.108.251.163]) by fed1mtao02.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with SMTP id <20031022190159.LHLZ27579.fed1mtao02.cox.net@Singularity> for ; Wed, 22 Oct 2003 15:01:59 -0400 Message-ID: <001a01c398ce$f92348f0$a3fb6c44@Singularity> From: "Dan Koppel" To: Subject: [Caml-list] Question about linking C++ and OCAML Date: Wed, 22 Oct 2003 12:02:00 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0017_01C39894.4CAEED20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; cox:99 subroutine:01 subroutine:01 compiler:01 compiler:01 ocaml:01 ocaml:01 linking:02 anybody:03 anybody:03 wondering:04 wondering:04 arial:95 arial:95 i'm:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_0017_01C39894.4CAEED20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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. With much appreciation, Dan Koppel UCSB, Santa Barbara, California ------=_NextPart_000_0017_01C39894.4CAEED20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all,
  I'm new to OCAML.  I have = written C++=20 code which needs to call a OCAML subroutine (written by somebody = else). =20 I'm using a Windows XP/Pentium 4 system and have the Microsoft Visual = C++=20 compiler.  I was wondering if anybody has experience doing this and = could=20 kindly give me some instructions on how to accomplish this.
 
With much appreciation,
  Dan Koppel
  UCSB, Santa Barbara,=20 California
------=_NextPart_000_0017_01C39894.4CAEED20-- ------------------- 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 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