Skip to content

Instantly share code, notes, and snippets.

@ninjarobot
Created August 11, 2016 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninjarobot/5cd7ea1bdb733bf3a88f4e1231e88236 to your computer and use it in GitHub Desktop.
Save ninjarobot/5cd7ea1bdb733bf3a88f4e1231e88236 to your computer and use it in GitHub Desktop.
# From debian, e.g. `docker run -it debian bash`
apt-get update
apt-get install -y ocaml-mingw-w64 gcc-mingw-w64
echo 'print_string "Hello world!\n";;' >> hello.ml
/usr/bin/i686-w64-mingw32-ocamlopt -o hello.exe hello.ml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment