Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Question about linking C++ and OCAML
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Kamil Shakirov <kamils@i...>
Subject: Re: [Caml-list] Question about linking C++ and OCAML
Hello,
"Dan Koppel" <dkoppel11@cox.net> 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