From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id AAE00BBAF for ; Wed, 15 Oct 2008 02:01:26 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuECACPP9EjAXQIniGdsb2JhbACTXwEBARUirB6Baw X-IronPort-AV: E=Sophos;i="4.33,411,1220220000"; d="scan'208";a="18108707" Received: from concorde.inria.fr ([192.93.2.39]) by mail3-smtp-sop.national.inria.fr with ESMTP; 15 Oct 2008 02:01:26 +0200 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m9F01OHx012418 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 15 Oct 2008 02:01:24 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AncBAB7Q9EhQW+UCgWdsb2JhbACTXwEBFiIErBOBaw X-IronPort-AV: E=Sophos;i="4.33,411,1220220000"; d="scan'208";a="16089859" Received: from main.gmane.org (HELO ciao.gmane.org) ([80.91.229.2]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 15 Oct 2008 02:01:23 +0200 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KptpI-0004Oy-PM for caml-list@inria.fr; Wed, 15 Oct 2008 00:01:21 +0000 Received: from ks300734.kimsufi.com ([91.121.65.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Oct 2008 00:01:20 +0000 Received: from sylvain by ks300734.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Oct 2008 00:01:20 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: Road to native windows OCaml... Date: Wed, 15 Oct 2008 00:01:12 +0000 (UTC) Message-ID: References: <200810131935.53365.kuba@mareimbrium.org> <200810141738.03532.kuba@mareimbrium.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ks300734.kimsufi.com User-Agent: slrn/pre0.9.9-102 (Linux) Sender: news X-Miltered: at concorde with ID 48F532D4.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; le-gall:01 ocaml:01 ocaml:01 mingw:01 cygwin:01 compilation:01 cygwin:01 wrote:01 wrote:01 compile:01 exception:01 msvc:01 msvc:01 caml:02 motivation:02 On 14-10-2008, Kuba Ober wrote: > On Tuesday 14 October 2008, David Allsopp wrote: >> Kuba Ober wrote: >> > I've looked briefly at what it'd take to have OCaml >> > fully working natively (with mingw/VS), without any Cygwin >> > needed for compilation. >> >> Can I ask what the motivation is for this (out of interest, not criticism)? >> It only takes a matter of minutes to install Cygwin and it can be >> completely ignored once OCaml is compiled (I don't even have Cygwin in my >> PATH). > > The motivation is that I'm allergic to Cygwin. And you're not quite right that > Cygwin is not needed later on: it is if you need to generate native code, > or link with native code. > Not at all. Once compiled, ocaml doesn't use cygwin anymore. With maybe the big exception of some little thing in ocambuild, that should be fixed in ocaml 3.11 (something like needing "tput"). For example, if you download and install OCaml MSVC from http://caml.inria.fr and you open a MS Visual Studio 2005 MSDOS shell, you can perfectly compile a native application (well I have not done it, but I will try tomorrow ;-) All you need is "cl", "ml" and "link" I think (all are MSVC tools). Regards, Sylvain Le Gall