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.
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:bag...@cs.unipr.it
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs