Version française
Home     About     Download     Resources     Contact us    
Browse thread
Calling C++ from OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jean Yang <jeanyang@c...>
Subject: Calling C++ from OCaml
Hello,

  I've been trying to call C++ from OCaml by using OCaml's external C
interface to call C functions that call the mangled-name version of the C++
functions.  I've been running into trouble because I'm not sure how to
specify the C++ object files to link against with ocamlc.  (I'm not sure how
to do it using ocaml-make.)  Can anyone help?

  Also, is this the best way to call from OCaml to C++?

Thanks,
Jean

-- 
Jean Yang
http://people.csail.mit.edu/jeanyang
Save us!  Think before you print.