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
[Caml-list] Output directory of .cmo / .cmx / .o
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-11-14 (22:37)
From: malc <malc@p...>
Subject: Re: [Caml-list] Output directory of .cmo / .cmx / .o
On Wed, 14 Nov 2001, Marcin 'Qrczak' Kowalczyk wrote:

> Running ocamlc -c dir/ produces dir/file.cmo.
> Running ocamlopt -c dir/ produces dir/file.{cmx,o}.
> Running ocaml{c,opt} -c dir/file.c produces file.o in the current
> directory. It's inconsistent.
> Is it possible to let the OCaml compiler let the C compiler put .o
> files resulting from .c files in the same directory as their sources
> if the current directory is different? -o applies only to executable
> or library. I can move files by hand but perhaps it can be done better.

ocaml[c|opt] -ccopt '-o dir/file.o' file.c


Bug reports:  FAQ:
To unsubscribe, mail  Archives: