From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p3UG8ueb000864 for ; Sat, 30 Apr 2011 18:08:56 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEALkzvE0+lQkY/2dsb2JhbACnDohxuHmGAASGCIhxhBmDf4YN X-IronPort-AV: E=Sophos;i="4.64,293,1301868000"; d="scan'208";a="82069231" Received: from dragon.cc.colocall.com (HELO dragon.mykola.org) ([62.149.9.24]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Apr 2011 18:08:22 +0200 Received: from [192.168.0.100] (96-117-94-178.pool.ukrtel.net [178.94.117.96]) (authenticated bits=0) by dragon.mykola.org (8.14.3/8.14.3) with ESMTP id p3UG8Kor033654 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sat, 30 Apr 2011 19:08:20 +0300 (EEST) (envelope-from nick@mykola.org) Content-Type: text/plain; charset=koi8-u Mime-Version: 1.0 (Apple Message framework v1084) From: =?koi8-u?B?7cnLz8zBIPPU0qTCy8/X?= In-Reply-To: Date: Sat, 30 Apr 2011 19:08:15 +0300 Message-Id: <7DD84FA9-30F0-4CDE-ABF0-3C616006EE8C@mykola.org> References: <006401cc0695$f031efc0$d095cf40$@ffconsultancy.com> To: Caml List X-Mailer: Apple Mail (2.1084) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p3UG8ueb000864 Subject: Re: [Caml-list] Windows install On 29 ËצÔ. 2011, at 21:33, Dmitry Bely wrote: > On Fri, Apr 29, 2011 at 9:50 PM, Jon Harrop 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