caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Dmitry Bely <dmitry.bely@gmail.com>
To: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Windows install
Date: Fri, 29 Apr 2011 22:33:17 +0400	[thread overview]
Message-ID: <BANLkTi=9iu9xZNmBTyWdZuQAyccFUojzWQ@mail.gmail.com> (raw)
In-Reply-To: <006401cc0695$f031efc0$d095cf40$@ffconsultancy.com>

On Fri, Apr 29, 2011 at 9:50 PM, Jon Harrop <jon@ffconsultancy.com> wrote:
> I've been trying to install OCaml on Windows Vista using the OCaml 3.11.0
> binary (MSVC) install. I have Visual Studio 2010 installed which, I believe,
> satisfies the dependencies but I keep getting linker errors. Curiously,
> different errors each time I reinstall:

I used to build Ocaml from sources on Windows (it's pretty
straight-forward, just follow readme.win32 from Ocaml source
distribution). As for the errors:

> C:\Users\Jon\Documents\OCaml>ocamlopt test.ml -o test
> ** Fatal error: Cannot find file "libws2_32"
> File "caml_startup", line 1, characters 0-1:
> Error: Error during linking

Looks like you have installed the port based on the MinGW toolchain
(instead of MSVC one). Take the right one from
http://caml.inria.fr/download.en.html

> C:\Users\Jon\Documents\OCaml>ocamlopt test.ml -o test
> ** Fatal error: Cannot find file "C:\\Program Files\\Objective
> Caml\\bin\\flexdl
> l_msvc.obj"
> File "caml_startup", line 1, characters 0-1:
> Error: Error during linking

Ocaml on Windows requires Alain Frisch's FlexDLL package. Grab it from
http://alain.frisch.fr/flexdll.html

> C:\Users\Jon\Documents\OCaml>ocamlopt test.ml -o test
> 'flexlink' is not recognized as an internal or external command,
> operable program or batch file.
> File "caml_startup", line 1, characters 0-1:
> Error: Error during linking

FlexDLL is missing.

> What's the easiest way to get a working OCaml install under Windows ATM?

Again, I would recommend to build from sources.

- Dmitry Bely

  reply	other threads:[~2011-04-29 18:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-29 17:50 Jon Harrop
2011-04-29 18:33 ` Dmitry Bely [this message]
2011-04-30 16:08   ` Микола Стрєбков
2011-04-30 17:37     ` dmitry grebeniuk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTi=9iu9xZNmBTyWdZuQAyccFUojzWQ@mail.gmail.com' \
    --to=dmitry.bely@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).