Forrest logo
back to context overview

ocamlfind

List of commands for ocamlfind:

  • ocamlfind:tldr:28d89 ocamlfind: Compile a source file to a bytecode binary and link with packages.
    $ ocamlfind ocamlc -package ${package1},${package2} -linkpkg -o ${path-to-executable} ${path-to-source-ml}
    try on your machine
    explain this command
  • ocamlfind:tldr:5b0a8 ocamlfind: Compile a source file to a native binary and link with packages.
    $ ocamlfind ocamlopt -package ${package1},${package2} -linkpkg -o ${path-to-executable} ${path-to-source-ml}
    try on your machine
    explain this command
  • ocamlfind:tldr:fc9c7 ocamlfind: Cross-compile for a different platform.
    $ ocamlfind -toolchain ${cross-toolchain} ocamlopt -o ${path-to-executable} ${path-to-source-ml}
    try on your machine
    explain this command
back to context overview