From: Roberto Bagnara <bagnara@cs.unipr.it>
To: Jean Yang <jeanyang@csail.mit.edu>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Calling C++ from OCaml
Date: Mon, 15 Feb 2010 17:45:50 +0100 [thread overview]
Message-ID: <4B797A3E.5060304@cs.unipr.it> (raw)
In-Reply-To: <1bd843011002150832k54f53d8fme371dd7593703001@mail.gmail.com>
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
prev parent reply other threads:[~2010-02-15 16:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-15 16:32 Jean Yang
2010-02-15 16:45 ` Roberto Bagnara [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B797A3E.5060304@cs.unipr.it \
--to=bagnara@cs.unipr.it \
--cc=caml-list@yquem.inria.fr \
--cc=jeanyang@csail.mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox