Problem to compile a DLL on mingw

It’s probably https://github.com/ocaml/ocaml/pull/1535
-static-libgcc is not longer passed to the linker since Ocaml 4.07.0.
So you can now end up with an extra dll dependency hat is not inside your path. (The dll can be found under /usr/i686-w64-mingw32/sys-root/mingw/bin. Inside cygwin you can add this folder to your PATH in the right order with eval $(ocaml-env cygwin) ).
Or just enforce the old way of linking with something like (library_flags .... -cclib -link -cclib -static-libgcc)

2 Likes