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 discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 2CE39BC0A for ; Tue, 19 Jun 2007 09:28:14 +0200 (CEST) Received: from hedwig1.umh.ac.be (hedwig2.umh.ac.be [193.190.193.73]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5J7SD25007904 for ; Tue, 19 Jun 2007 09:28:13 +0200 Received: from poincare.swapping.umh.ac.be ([10.102.100.12]) by hedwig1.umh.ac.be (8.13.6/8.13.6) with ESMTP id l5J7WNIL3305664; Tue, 19 Jun 2007 09:32:23 +0200 Received: from localhost ([127.0.0.1] ident=trch) by poincare.swapping.umh.ac.be with esmtp (Exim 4.67) (envelope-from ) id 1I0Y8E-00020P-GL; Tue, 19 Jun 2007 09:28:06 +0200 Date: Tue, 19 Jun 2007 09:28:06 +0200 (CEST) Message-Id: <20070619.092806.212251413.Christophe.Troestler+ocaml@umh.ac.be> To: caml-list@inria.fr Subject: Re: [Caml-list] windows ocaml From: Christophe TROESTLER In-Reply-To: <1182232242.29571.157.camel@rosella.wigram> References: <1182232242.29571.157.camel@rosella.wigram> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: University of Mons-Hainaut X-Mailer: Mew version 5.2.50 on Emacs 22.0.95 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.1 (www dot roaringpenguin dot com slash mimedefang) X-Miltered: at discorde with ID 4677858D.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 christophe:01 troestler:01 christophe:01 troestler:01 ocaml:01 umh:01 ocamlc:01 bytecode:01 ocamlopt:01 ocamlc:01 camlprog:01 bytecode:01 ocamlrun:01 ocamlrun:01 On Tue, 19 Jun 2007, skaller wrote: > > on Windows. This is with 3.09 native build. Here is what I get for 3.10, MSVC. > 1. ocamlc makes a bytecode file without an extension, which > cannot be executed. Ocamlopt adds '.exe'. This is inconsistent. ocamlc without -o produces camlprog.exe > 2. ocamlc makes a bytecode file which, when you add .exe > to the end can't exec ocamlrun .. even though it is in the PATH. > ocamlrun filename works fine. ocamlc -o a.exe a.ml produces a prefectly runnable executable (just typing 'a.exe'). > For transparency, the generated bytecode must use the same filename > (.exe must be added) and the bytecode must actually run. ^^^^^^^^^^^^^^^^^^ Isn't it your own choice when you use the -o flag? > It looks like the bytecode is binding the wrong ocamlrun location, Maybe you have several ones installed?? My 0.02¤, ChriS