logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Control OCaml Packages - Link Libraries | Online Free DevTools by Hexmos

Control OCaml packages effortlessly with ocamlfind. Simplify linking OCaml executables with external libraries for efficient software development. Free online tool, no registration required.

ocamlfind

The findlib package manager for OCaml. Simplifies linking executables with external libraries. More information: https://manned.org/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}}

  • 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}}

  • Cross-compile for a different platform:

ocamlfind -toolchain {{cross-toolchain}} ocamlopt -o {{path/to/executable}} {{path/to/source.ml}}

See Also