From: "Микола Стрєбков" <nick@mykola.org>
To: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Windows install
Date: Sat, 30 Apr 2011 19:08:15 +0300 [thread overview]
Message-ID: <7DD84FA9-30F0-4CDE-ABF0-3C616006EE8C@mykola.org> (raw)
In-Reply-To: <BANLkTi=9iu9xZNmBTyWdZuQAyccFUojzWQ@mail.gmail.com>
On 29 квіт. 2011, at 21:33, Dmitry Bely wrote:
> 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
It's easier to explicitly specify a path to MinGW libraries by passing
-cclib "-L c:/mingw/lib" to ocamlopt :-)
>> What's the easiest way to get a working OCaml install under Windows ATM?
>
> Again, I would recommend to build from sources.
Only if one need the latest version of OCaml. If 3.11 is enough it's more convenient
to take a self installer.
--
Mykola Stryebkov
Public key: http://mykola.org/pubkey.txt
fpr: 0226 54EE C1FF 8636 36EF 2AC9 BCE9 CFC7 9CF4 6747
next prev parent reply other threads:[~2011-04-30 16:08 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
2011-04-30 16:08 ` Микола Стрєбков [this message]
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=7DD84FA9-30F0-4CDE-ABF0-3C616006EE8C@mykola.org \
--to=nick@mykola.org \
--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