1
0
Fork 0
Reproduce a DLL creation problem with 4.07.1+mingw32c that did not occur with 4.06.1+mingw32c.
Go to file
Matthieu Dubuget 816ea74cc1 Explications 2019-04-14 09:41:28 +02:00
dll Commit initial 2019-04-13 13:47:57 +02:00
test Commit initial 2019-04-13 13:47:57 +02:00
tst_stub Commit initial 2019-04-13 13:47:57 +02:00
Makefile Commit initial 2019-04-13 13:47:57 +02:00
README.md Explications 2019-04-14 09:41:28 +02:00
dune-project Commit initial 2019-04-13 13:47:57 +02:00

README.md

See https://discuss.ocaml.org/t/problem-to-compile-a-dll-on-mingw/3661/2

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.

Branches

  • master : Do not work
  • solve_linking_problem : Solution