I was not able to compile WeiDU on XP using the '4.07.x' version because apparently, OCaml no longer supports XP. The minimum OS is now Windows Vista. Yet, there is hope:
https://discuss.ocaml.org/t/8208Basically, there is a way to have WeiDU binary working on XP:
- by using single 'win32.c patch' and compiling OCaml on Windows 10: this will make OCaml produce binaries that run on Windows XP
- by using both flexdll patch' and 'win32.c patch' then 'bootstrap flexdll' before compiling OCaml on Windows XP: this makes OCaml compilation possible on Windows XP and will make OCaml produce binaries that run on Windows XP
I tried but I have not found a way to apply 'win32.c patch' to the 'ocaml setup' produced by standard OCaml tools aka 'opam switch create 4.07.0+default-unsafe-string+mingw32'.
Still, I think that the 'win32.c patch' might be useful to your current setup so I'm posting my findings.