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
RE: (native Windows executables)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-05-14 (21:18)
From: Frederic van der Plancke <fvdp@d...>
Subject: RE: (native Windows executables)
Thanks everyone for your answers.
I think I have all information I need for now...

More on this when I'll actually try to produce
such executables, if I get problems.

-- Frédéric van der Plancke.

From: 	Xavier Leroy[]
Sent: 	mardi 9 mai 2000 11:14
To:; ''
Subject: 	Re: your mail

> Can OCaml programs be compiled to native Windows(x86) executables ?

Yes, you can produce standalone Win32 executables, either using the
bytecode compiler ocamlc with the -custom option, or using the
native-code compiler ocamlopt.

> What external programs are needed ? Can Microsoft Visual C++ be of
> some help ?

>From the README.win32 file:

  Linking Caml bytecode with C code (ocamlc -custom) requires the
  Microsoft Visual C++ compiler version 6.

  The native-code compiler (ocamlopt) requires Visual C++ version 6
  and the Microsoft assembler MASM version 6.11 or later.
  MASM can be downloaded for free from Microsoft's Web site;
  see the comp.lang.asm.x86 FAQ for directions, or

Hope this helps,

- Xavier Leroy