Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2007-06-19 (05:50)
From: skaller <skaller@u...>
Subject: windows ocaml
Hi, we're having a terrible time getting ocaml to work properly
on Windows. This is with 3.09 native build.

1. ocamlc makes a bytecode file without an extension, which
cannot be executed. Ocamlopt adds '.exe'. This is inconsistent.

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.

The way our build scripts are set up, we assume the generated
file from a link step is executable (as for native code compiler).
For transparency, the generated bytecode must use the same filename
(.exe must be added) and the bytecode must actually run.

It looks like the bytecode is binding the wrong ocamlrun location,
if the bytecode file is copied to the same directory as contains
ocamlrun, it runs .. otherwise it fails.

John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: