From: Jean Yang <jeanyang@csail.mit.edu>
To: caml-list@yquem.inria.fr
Subject: Calling C++ from OCaml
Date: Mon, 15 Feb 2010 11:32:31 -0500 [thread overview]
Message-ID: <1bd843011002150832k54f53d8fme371dd7593703001@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2010-02-15 16:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-15 16:32 Jean Yang [this message]
2010-02-15 16:45 ` [Caml-list] " Roberto Bagnara
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=1bd843011002150832k54f53d8fme371dd7593703001@mail.gmail.com \
--to=jeanyang@csail.mit.edu \
--cc=caml-list@yquem.inria.fr \
/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;
as well as URLs for NNTP newsgroup(s).