* Calling C++ from OCaml
@ 2010-02-15 16:32 Jean Yang
2010-02-15 16:45 ` [Caml-list] " Roberto Bagnara
0 siblings, 1 reply; 2+ messages in thread
From: Jean Yang @ 2010-02-15 16:32 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 505 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 633 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Calling C++ from OCaml
2010-02-15 16:32 Calling C++ from OCaml Jean Yang
@ 2010-02-15 16:45 ` Roberto Bagnara
0 siblings, 0 replies; 2+ messages in thread
From: Roberto Bagnara @ 2010-02-15 16:45 UTC (permalink / raw)
To: Jean Yang; +Cc: caml-list
On 02/15/10 17:32, Jean Yang wrote:
> 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++?
I am not sure what is the best way to call C++ code from OCaml.
However, we successfully interfaced the Parma Polyhedra Library
core, which is written in C++, to OCaml. You can fetch a source
distribution from http://www.cs.unipr.it/ppl/ and look into the
interfaces/OCaml directory.
Hope it helps,
Roberto
--
Prof. Roberto Bagnara
Applied Formal Methods Laboratory
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara@cs.unipr.it
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-15 16:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-15 16:32 Calling C++ from OCaml Jean Yang
2010-02-15 16:45 ` [Caml-list] " Roberto Bagnara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox