ocaml - No implementations provided for the following modules -


i'm having problem corebuild. have written following program:

open core.std open smtp  type person = {   name: string;   address: smtp_unix.addr.t }  let send p1 p2 =   smtp_unix.sendmail ~host:"gmail.google.fr"     ~name:"gmail.google.com"     ~from:(smtp_unix.addr.of_string "<hidden>")     ~to_:[p1.address]     ~body:("hello "^p2.name)     ()  let () =   let p1 = {name="alice"; address = smtp_unix.addr.of_string "alice@example.com"} in   let p2 = {name="bob"; address = smtp_unix.addr.of_string "bob@example.com"} in   match send p1 p2   | `ok _ -> printf "mail sent"   | `failure (_,m) -> printf "error: %s" m 

which according merlin correct. compile it, run following command

corebuild example.native -package smtp 

and following error, don't understand.

error: no implementations provided following modules:          smtp_unix referenced example.cmx 

i don't wrong. idea?

looks smtp_unix needed smtp.

corebuild send.native -package smtp.unix -package smtp 

Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -