This is an experiment to provide a self-contained OCaml distribution
for Windows. You can download the ZIP archive, extract the files where
you want, add the bin
directory to your PATH, and you can start
using OCaml bytecode and native compilers. In particular, you don't need
to install Cygwin to use this distribution.
We only provide binary releases. If you are interested in getting an open-source copy of the sources for your own needs, or in clarifying other licensing issues, contact sales@ocamlpro.com.
OcpWin comes in three variants:
- The "MinGW" variant is an OCaml distribution packaged with a minimal set of MinGW files (the "gcc" C-compiler distribution for Windows). It should be enough to compile any basic project without Cygwin or MSVC.
- The "full MinGW" variant is an OCaml distribution packaged with a complete set of MinGW files (the "gcc" C-compiler distribution for Windows). It can be used to compile any project that requires a complete C-compiler suite.
- The "MSVC" variant is an OCaml distribution packaged to use MSVC (Microsoft Visual Compiler) instead of MinGW. You should install the "Microsoft Windows 7 SDK" version (Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 Service Pack 1), but it will work with any other version if you set Visual Studio environment variables correctly.
The two MinGW variants can be configured to use MSVC instead of MinGW
at runtime. For that, you should look for a file called ocaml.msvcXX
(where XX
is 32 or 64) in the directory pointed by ocamlc -where
,
and then set the variable OCPCOMP_FILE
to point to that file (with a
Windows path, not a Cygwin path):
export OCPCOMP_FILE=c:/OCamlPro/OcpWin32/lib/ocaml.msvc32
All these versions will work normally under Cygwin, provided that you don't install another OCaml version in your Cygwin PATH before them.
Use this page for the latest version or go to one of beta releases, a corresponding download link should be available at the beginning of the release note.
There are no stable releases yet.
WARNING: Some versions are known to corrupt long PATH variables !!! Please, backup your PATH variable before installing. 2015 versions are supposed to fix the problem, please report if it is/it is not the case.
Release notes:
-
20160113: Release Notes
-
20151024: Release Notes
-
20151008: Release Notes
-
20141117: Release Notes
-
20141031: Release Notes
-
20141010: Release Notes
-
20141008: Release Notes
-
2014 October 7: Release Notes
-
2014 September 30: Release Notes
-
2014 September 23: Release Notes
-
2014 September 22: Release Notes
-
2014 September 21: Release Notes
-
2014 September 19: Release Notes
Some information is available here
Use this bug tracker
Read the stable subset to know how to use it in a forward compatibility mode.
Differences with OCaml on Windows
Another installer is also provided for OCaml on Windows, by Jonathan Protzenko. The main differences are:
Feature | OcpWin | OCaml4Windows |
32 bit version | Yes | Yes |
64 bit version | Yes | |
MinGW C-Compiler | Included | Use Cygwin MinGW |
Cygwin Installed | Optional | Mandatory |
MSCV | Yes | No |
MSVC configuration | Auto-detected | No |
Build Systems | ocp-build, ocamlbuild, ocamlc -make | ocamlfind, ocamlbuild |