Use ocamlbuild. You can simply type "ocamlbuild lazy_lists.native" or "ocamlbuild lazy_lists.byte" to produce native or byte code respectively. All compiled files get put in a separate directory called _build. On Wed, Aug 6, 2008 at 10:39 AM, Ben Aurel wrote: > > then, the 'files lazy_lists.cmi' and 'lazy_lists.cmo' are not in the > > /bin directory. > > which is bad > > On Wed, Aug 6, 2008 at 10:38 AM, Ben Aurel wrote: > > hi > > > > If you have a simple source code like > > > > lazy_lists.ml > > > > what is the best way to compile that in your opinion? I though it > > would be usefull to have anything but the .ml source code in a bin > > directory. What do you think of that? > > > > If I try that with > > > > "ocamlc -o bin/lazy_lists lazy_lists.ml" > > > > then, the 'files lazy_lists.cmi' and 'lazy_lists.cmo' are not in the > > /bin directory. > > > > ben > > > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >