#include #include void cpp_normal_function() { std::cout << "HELLO OCAML! :)" << std::endl; } extern "C" { #include #include extern value hello_ocaml(value unit){ cpp_normal_function(); return 0; } }