Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamlc/ocamlopt output directory
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Romain Bardou <Romain.Bardou@l...>
Subject: Re: [Caml-list] ocamlc/ocamlopt output directory
What would be the point of placing all cmo files in the current 
directory? This could even lead to errors if some files have the same 
names, like "bla/foo.ml" and "bli/foo.ml".

My advice would be to use ocamlbuild if you don't like the cmo files in 
the source tree =)

     Romain Bardou

Dmitry Bely a écrit :
> By default Ocaml compilers place output files to the same directory
> where the source resides:
> 
> ocamlc -c ../src/foo.ml -> generates ../src//foo.cmo, not ./foo.cmo as
> one would expect from other compilers experience!
> 
> This can be overwritten by -o flag, but it's a) completely
> undocumented for this purpose (manual says that it only affects the
> linking phase) and b) affects ALL generated files at once.
> 
> Is this the design decision or just a faulty implementation? Should I
> submit a bug report (together with a rather trivial fix) or this
> behavior considered standard because it's too late to change anything?
> 
> - Dmitry Bely
> 
> _______________________________________________
> 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