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.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id C82B2BBB7 for ; Mon, 16 Jun 2008 08:39:31 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An4BAJ+nVUjAXQImiGdsb2JhbACSHgEBAQ8gmgw X-IronPort-AV: E=Sophos;i="4.27,651,1204498800"; d="scan'208";a="13872525" Received: from discorde.inria.fr ([192.93.2.38]) by mail1-smtp-roc.national.inria.fr with ESMTP; 16 Jun 2008 08:39:31 +0200 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m5G6dVvx015924 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 16 Jun 2008 08:39:31 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkwAAJ+nVUjUGyodmmdsb2JhbACSHgEBAQEBCAUIBxEDmgk X-IronPort-AV: E=Sophos;i="4.27,651,1204498800"; d="scan'208";a="12099799" Received: from smtp3-g19.free.fr ([212.27.42.29]) by mail2-smtp-roc.national.inria.fr with ESMTP; 16 Jun 2008 08:39:30 +0200 Received: from smtp3-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp3-g19.free.fr (Postfix) with ESMTP id 63EA717B56A; Mon, 16 Jun 2008 08:39:30 +0200 (CEST) Received: from [82.229.183.156] (rke75-3-82-229-183-156.fbx.proxad.net [82.229.183.156]) by smtp3-g19.free.fr (Postfix) with ESMTP id 1F30217B54A; Mon, 16 Jun 2008 08:39:30 +0200 (CEST) Message-ID: <48560A9B.4000208@frisch.fr> Date: Mon, 16 Jun 2008 08:39:23 +0200 From: Alain Frisch User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Gerd Stolpmann Cc: caml-list , godi-list Subject: Re: [Caml-list] GODI News: RocketBoost Beta References: <1213541678.22235.107.camel@flake.lan.gerd-stolpmann.de> In-Reply-To: <1213541678.22235.107.camel@flake.lan.gerd-stolpmann.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 48560AA3.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; frisch:01 frisch:01 gerd:01 stolpmann:01 mingw:01 ocaml:01 cygwin:01 cygwin:01 symlinks:01 ocaml:01 ocamldep:01 mingw:01 oversight:01 cvs:01 makefiles:01 Gerd Stolpmann wrote: > The big news is that GODI now supports the MinGW port of OCaml for > Windows (besides the Cygwin port). This means that it is now possible to > create native Windows applications with GODI. That's really great news! > A lot of the porting effort was about Cygwin interoperability. > godi_console (which is a native Win32 binary) can translate Cygwin paths > to native Windows paths (by reading the Cygwin mount table in the > registry). This feature might be useful for other projects. Do you plan to make it available as a stand-alone library (maybe together with other Windows-related hacks)? Does it support Cygwin symlinks? > * Ocaml does not install ocamldep.opt.exe > > in the MinGW port. Maybe an oversight? Already fixed in CVS HEAD (many of the Makefiles are now shared between Unix and Windows ports). > * No support for ocamlmklib > > A lot of work has been put into working around the missing ocamlmklib. > The difficulty is that stub libraries need to be compiled with different > flags when a DLL is to be produced, i.e. the C compiler is invoked > differently in this case. This is no longer true with the version in CVS HEAD, to become 3.11. Now there is some hackery at link time to allow using the same set of object files for linking statically or dynamically (for stub code dlls). Also, ocamlmklib is available for all the Windows ports. > There are no clear rules how to quote arguments in Windows (cmd.exe). Indeed. I've found that it is sometimes necessary (and it seems to be always sufficient) to add extra quotes around the whole command line. E.g. to call emacs on a file "foo bar" (without the quotes) from OCaml, here what I do: Sys.command "\"\"C:\\Program Files\\emacs-22.1\\bin\\emacs\" \"foo bar\"\"" That is, one passes this command line to cmd.exe: ""C:\Program Files\emacs-22.1\bin\emacs" "foo bar"" As weird as it may look, the quotes around the program and argument names are not escaped. -- Alain