Reproduce a DLL creation problem with 4.07.1+mingw32c that did not occur with 4.06.1+mingw32c.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Matthieu Dubuget 816ea74cc1 Explications 3 years ago
dll Commit initial 3 years ago
test Commit initial 3 years ago
tst_stub Commit initial 3 years ago
Makefile Commit initial 3 years ago Explications 3 years ago
dune-project Commit initial 3 years ago


for the short explanation.

More in depth discussions:

I had two choices:

  • either use eval $(ocaml-env cygwin)
  • or add a -link -static-libgcc at link time

The first solution works "for me": the PATH environment variable is modified on my computer, and things are working fine. But since my goal is to distribute the DLL to others, who do not necessarily have cygwin installed, I chose the second solution.


  • master : Do not work
  • solve_linking_problem : Solution