Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2010-02-15 (16:32)
From: Jean Yang <jeanyang@c...>
Subject: Calling C++ from OCaml

  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++?


Jean Yang
Save us!  Think before you print.