2006/11/18, Francois Colonna < colonna%40ccr.jussieu.fr">colonna
ccr.jussieu.fr>:
> Hello,
>
>
> suppose I have a module "My_tools" stored in the "my_tools.cmo"
> put in the directory /home/user/caml/tools
you also need the my_tools.cmi
> How can I use this module in the file "my_code.ml" which is in the
> directory /home/user/caml/program
when compiling :
ocamlc -c -I /home/user/caml/tools my_code.ml
when linking:
ocamlc -I /home/user/caml/tools my_tools.cmo my_code.cmo -o myprog
.