Issue compiling Cuite (producing a .so file from C++ stubs)

I am trying to build cuite on Windows/MSYS2/minwg64 with OCaml 4.14.2.. I have managed to fix many issues. But the latest one is more tricky.

A have a bunch of compiled C++ file (*.o) that use some OCaml FFI functions (__imp_caml_alloc_tuple and others). The Makefile try to package all of them in a shared object (libcuite.so).

Some OCaml functions (__imp_caml_alloc_tuple, __imp_caml_modify, __imp_caml_invalid_argument) are missing and I don’t find a library (.a file) that provides them. (Even libasmrun.a suggested by an AI).

imp prefix sounds like windows specific dll thing? caml_modify is the the most basic runtime primitive, if it cannot be found then nothing much really can work. I would expect it to be linked statically but looks like in your project it is referenced as dynamic symbol. Are you building bytecode or native code