Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 521

Mac - Compile program with dune

$
0
0

I got this program prog.ml :

open Base;;
open Batteries;;
let st = String.slice ~first:(1) ~last:(3) "ABCD";;
print_string st;;
...

My file dune :
(executable
 (name prog) 
(libraries /Users/xt/.opam/system/lib/Base /Users/xt/.opam/system/lib/Batteries) )

When I try: "dune build prog.exe" 
returns "Error: Library ... not found."

How to build the "dune" file to compile and create executable?

8 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 521

Trending Articles