How from Ocaml can I call C++ code using itself a shared library .so ?
问题 I need to build an Ocaml/C++ module which calls a shared object (.so under linux) As long as it is a question to compile a simple Ocaml/C++ stub, I manage the thing but when I need to link the .so with ocamlmklib or ocamlopt, it fails I work under gcc 4.5 (c++0x) files for the shared object : hello.hpp #include <iostream> #include <string> using namespace std; class HelloApplication { public : HelloApplication(); ~HelloApplication(); void say(string s); }; typedef HelloApplication *(*create