Version française
Home     About     Download     Resources     Contact us    
Browse thread
windows ocaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe TROESTLER <Christophe.Troestler+ocaml@u...>
Subject: Re: [Caml-list] windows ocaml
On Tue, 19 Jun 2007, skaller <skaller@users.sourceforge.net> 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