Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2008-02-04 (15:10)
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/" and "bli/".

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/ -> 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:
> Archives:
> Beginner's list:
> Bug reports: