English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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.