OCaml Forge
SCM

Forum: help

Discussion Forums: help

Monitor Forum | Start New Thread Start New Thread
RE: Problem compiliing a project [ reply ]
By: damien karr on 2011-04-07 12:38
[forum:616]
Thank you.

I must have missed that in the documentation

RE: Problem compiliing a project [ reply ]
By: Julien Signoles on 2011-04-07 11:32
[forum:615]
Hello,

Calendar packs all modules into a single module CalendarLib. Thus you have to open CalendarLib before using any module like Date (or prefix any use by CalendarLib.).

example:
=== program.ml ===
open CalendarLib
let () = Printer.Date.dprint (Date.today ())
===
ocamlfind ocamlc -package calendar,str -c program.ml
ocamlfind ocamlc -package str,calendar -linkpkg program.cmo
./a.out
2011-04-07
===

Does it solve your issue?

--
Julien

Problem compiliing a project [ reply ]
By: damien karr on 2011-04-07 11:14
[forum:614]
Hello,

I have a problem compiling a program with the calendar library. It says an unbound module Date.

I have the following script:

ocamlfind ocamlc -package calendar,str,mathlib -c program.ml
ocamlfind ocamlc -package mathlib,str,calendar -linkpkg program.cmo