<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/10/f168ab54a3c8c91f894d06d59a1cb976"
  from="Kamil Shakirov &lt;kamils@i...&gt;"
  author="Kamil Shakirov"
  date="2003-10-22T23:26:49"
  subject="Re: [Caml-list] Question about linking C++ and OCAML"
  prev="2003/10/d8b1cefe6e0ca963b306d4ea47697a6a"
  next="2003/10/34f3190c6d99486609f1bcf1a25eb523"
  prev-in-thread="2003/10/cc0c9ab9fccde72ca4016678d4bfc90f"
  prev-thread="2003/10/865d716a1499fe5a9cc13f60e84a8a3e"
  next-thread="2003/10/d8b1cefe6e0ca963b306d4ea47697a6a"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Question about linking C++ and OCAML">
<msg 
  url="2003/10/cc0c9ab9fccde72ca4016678d4bfc90f"
  from="Dan Koppel &lt;dkoppel11@c...&gt;"
  author="Dan Koppel"
  date="2003-10-22T19:02:02"
  subject="[Caml-list] Question about linking C++ and OCAML">
<msg 
  url="2003/10/f168ab54a3c8c91f894d06d59a1cb976"
  from="Kamil Shakirov &lt;kamils@i...&gt;"
  author="Kamil Shakirov"
  date="2003-10-22T23:26:49"
  subject="Re: [Caml-list] Question about linking C++ and OCAML">
</msg>
</msg>
</thread>

<contents>
Hello,
"Dan Koppel" &lt;dkoppel11@cox.net&gt; writes:

&gt; Hello all, 
&gt;
&gt; I'm new to OCAML.  I have written C++ code which needs to call a
&gt; OCAML subroutine (written by somebody else).  I'm using a Windows
&gt; XP/Pentium 4 system and have the Microsoft Visual C++ compiler.  I
&gt; was wondering if anybody has experience doing this and could kindly
&gt; 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.

&gt; With much appreciation,
&gt;   Dan Koppel
&gt;   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

</contents>

</message>

