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
[Caml-list] beginner's questions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-09-21 (12:18)
From: Dmitry Bely <dbely@m...>
Subject: Re: [Caml-list] beginner's questions
Hallvard Ystad <> writes:

> I'm just about to get started with caml, but I encounter a few problems.
> To do something simple, I took Stephan Houben's (from
>, added a function to avoid division
> by zero, and tried to compile it to native code using ocamlopt (on a
> windows 2000 machine). Here's what I get: 
> D:\ocaml>ocamlopt
> 'ml' is not recognized as an internal or external command, operable program or batch file.
> Assembler error, input left in file C:\DOCUME~1\............\Temp\camlasm8c5322.asm
> Did I miss something? Am I dumb? I've tried to read the documentation for
> compiling (found in differen FAQs), but none  of them seem to mention
> special constraints for the windows platform.

They do. See readme.win32:

       Release notes on the MS Windows ports of Objective Caml

Starting with OCaml 3.05, there are no less than three ports of
Objective Caml for MS Windows available:
  - a native Win32 port, built with the Microsoft development tools;
  - a native Win32 port, built with the MinGW development tools;
  - a port consisting of the Unix sources compiled under the Cygwin
    Unix-like environment for Windows.

Here is a summary of the main differences between these ports:

                                      Native MS     Native MinGW        Cygwin
Third-party software required
  - for base bytecode system            none            none            none
  - for ocamlc -custom                  MSVC         MinGW or Cygwin    Cygwin
  - for native-code generation          MSVC+MASM    MinGW or Cygwin    Cygwin

So if you are going to use ocamlopt from win32 binary distribution, you have
to install Microsoft Visual C and Microsoft Macro Assembler on your computer.

> Second issue (not a problem!): when I try to run the ocamlbrowser, it
> complains about not finding tk83.dll and tcl83.dll. Well, I seem to have a
> version too new for this. My files are tk84.dll and tcl84.dll. I had to
> make copies of them with the "older" names for ocamlbrowser to work...

Again, the binary build expects Tcl/Tk 8.3 installed. To work with other
version you can rebuild the whole Ocaml from the sources.

> Hope someone can help with the compile problem (and maybe tell me how to
> compile with the regexp library too?). 

Which one? E.g. module "Str" is already included into the standard library.

- Dmitry Bely

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: