Hi, Does anyone call OCaml code from C++? C can call OCaml with the OCaml foreign interfaces. But when we call OCaml from C++, we need to consider ‘extern C' stuff, like what we do when call C from C++, because the bridge functions between C and OCaml are written in C.
However, those functions have not been prefixed with 'extern C', and some functions, such as caml_alloc_dummy in libasmrun, have not been exposed in a head file. So it is hard to define a wrapper to let it work in C++. When linking C++ and libasmrun, caml_alloc_dummy cannot be found by the linker. Does anyone happen to know how to solve this problem? Thanks a lot. Jianzhou _______________________________________________ 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
