From mboxrd@z Thu Jan 1 00:00:00 1970 X-Sympa-To: caml-list@inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q32Bml4I002614 for ; Mon, 2 Apr 2012 13:48:48 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmYCABqReU8uaUskgWdsb2JhbABEuTEBAQsHBAsHFCeCCQEBBTIBBUABEAsYCRYPCQMCAQIBNwENBg0BBQICiAUEuXKJWYdDBJtzjQY X-IronPort-AV: E=Sophos;i="4.75,355,1330902000"; d="scan'208";a="152291484" Received: from 2.mo3.mail-out.ovh.net (HELO mo3.mail-out.ovh.net) ([46.105.75.36]) by mail1-smtp-roc.national.inria.fr with ESMTP; 02 Apr 2012 13:48:42 +0200 Received: from mail186.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo3.mail-out.ovh.net (Postfix) with SMTP id 9E2B5FF8F60 for ; Mon, 2 Apr 2012 13:39:59 +0200 (CEST) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 2 Apr 2012 13:39:22 +0200 Received: from unknown (HELO ?138.231.81.30?) (romain%bardou.fr@138.231.81.30) by ns0.ovh.net with SMTP; 2 Apr 2012 13:39:19 +0200 Message-ID: <4F798FE1.9010709@lsv.ens-cachan.fr> Date: Mon, 02 Apr 2012 13:39:13 +0200 From: Romain Bardou User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: Adrien CC: caml-list@inria.fr X-Ovh-Mailout: 178.32.228.3 (mo3.mail-out.ovh.net) References: <4F730303.8000802@gmail.com> <4F75BFFA.6040407@gmail.com> <4F795D4D.1060503@lsv.ens-cachan.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 10369256667068159751 X-Ovh-Remote: 138.231.81.30 () X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: 0 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeegfedrtdelucetggdotefuucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucenucfhrhhomheptfhomhgrihhnuceurghrughouhcuoegsrghrughouheslhhsvhdrvghnshdqtggrtghhrghnrdhfrheqnecujfgurhepkfffhfgfggfvufhfjggtgfesthekrgdttdefud X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeegfedrtdelucetggdotefuucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucenucfhrhhomheptfhomhgrihhnuceurghrughouhcuoegsrghrughouheslhhsvhdrvghnshdqtggrtghhrghnrdhfrheqnecujfgurhepkfffhfgfggfvufhfjggtgfesthekrgdttdefud X-Validation-by: bardou@lsv.ens-cachan.fr Subject: Re: [Caml-list] Re: New version of the binary installer for Windows Le 02/04/2012 13:14, Adrien a écrit : > On 02/04/2012, Romain Bardou wrote: >> Le 30/03/2012 16:15, Jonathan Protzenko a écrit : >>> Hi again, >>> >>> Following all the good suggestions in this thread, I've updated the >>> installer. It now downloads and runs cygwin's setup.exe so as to provide >>> a fully working environment for OCaml on windows after the installer >>> completes. The cygwin installer runs in silent mode, that is, the >>> progress window shows up, but there is no user prompt. >> >> Hello, >> >> I always heard that if you compile your program under the Cygwin >> environment, then the application needs to be run under the Cygwin >> environment as well; whereas if you use MinGW, you produce stand-alone >> executables. Is that still the case? >> >> I need to give stand-alone executables to my users; I cannot tell them >> to install Cygwin as well. If your installer does not let me compile >> stand-alone executables, it has no value to me. > > Others have already pointed out that it wasn't necessarily the case. > > If you call "gcc" from cygwin, you'll end up with cygwin binaries but > you can very simply cross-compile. > > Cygwin provides a POSIX environment that can also run windows stuff > and does some translation between the two but if you cross-compile, > you can target whatever you want and that includes "pure" windows. > > Also, note that msys, which is often used when cygwin isn't, is > similar to cygwin (and it's a "light" fork of cygwin), also requires > you to provide a specific library and changes the behaviour of the > application. However, you should absolutely never ever build anything > msys (msys is also a target for gcc, which has never been merged and > is from gcc 2.95 or 2.96). > > With x-compilation, you can do what you want: > - need full POSIX? cygwin > - need some POSIX? msys (maybe) > - need some POSIX but not a lot? a library on top of win32, or move > away from posix directly > > By the way, there was a netbsd-derived environment named Interix which > microsoft used to advise. Windows 8's documentation now advises users > of Interix to use cygwin or mingw(-w64). > > Regards, > Adrien Nader > > Thanks to all of you for clarifying this ! -- Romain