Files
adventofcode2024/ocaml compilation is weird.txt
2024-12-06 18:24:33 +01:00

10 lines
340 B
Plaintext

Simple compilation:
ocamlc main.ml && ./camlprog
cmd /c "(ocamlc main.ml) && camlprog.exe"
Libraries:
ocamlfind ocamlc -linkpkg -package str main.ml && ./camlprog
cmd /c "(ocamlfind ocamlc -linkpkg -package str main.ml) && camlprog.exe"
Optimization:
ocamlc can be replaced with ocamlopt to produce faster code but the compilation is slow