When I updated the documentation, I expected FlexDLL 0.35 would appear soon after the release of OCaml 4.03.0, but that hasn’t yet happened!
In order to build with Visual Studio 2015, you must recompile the FlexDLL objects from sources. You can either clone
https://github.com/alainfrisch/flexdll.git and do make CHAINS=msvc support to get VC14 versions of flexdll_msvc.obj and flexdll_initer_msvc.obj (or CHAINS=msvc64 if you’re building the 64bit version)
or you can follow the instructions for bootstrapping, which should be (the extra
git checkout master pulls in the very latest FlexDLL, rather than the version tagged in 4.03.0, which is optional):
·
git clone
https://github.com/ocaml/ocaml.git
·
cd ocaml
·
git checkout 4.03.0
·
git submodule update --init
·
cd flexdll
·
git checkout master
·
cd ..
·
do the usual stuff in config/
·
make -f Makefile.nt flexdll world world.opt install
I
think you can build 4.03.0 with FlexDLL 0.34, the key thing is that you must build the support objects from sources. Off the top of my head, I can’t remember if I had to patch anything in flexlink for VS2015…
David
From: caml-list-request@inria.fr [mailto:caml-list-request@inria.fr]
On Behalf Of picflo_2@web.de
Sent: 27 July 2016 09:44
To: caml-list@inria.fr
Subject: [Caml-list] Building OCaml 4.03.0 from source
Hi,
i am trying to build OCaml 4.03.0 from source on windows 7. At first i tried to build it with VC140, which
failed due to unresolved symbols, __iob_func and sprintf.The workaround mentioned in the mantis ticket 7263
didn't help. The quite recent comment there that it is a bug (of sorts) in FlexDLL sounded reasonable, but the
Flexdll verison 0.35 which is mentioned in the install readme for OCaml 4.03 does not exist on alain frisch github
page.
Compiling with VC110 worked fine except for the point where i tried to link my source files which were build with
different vc versions. This time the list of unresolved symbols is longer,
__iob_func
_environ
_vscprintf
_vsnprintf
fprintf
printf
sscanf
Should the new FlexDLL version fix the problem, so i can recompile everything with VC140? Has someone successfully
compiled OCaml 4.03 with VC140 on a windows 7 machine with flexdll 0.34?
Best regards,
Florian