Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] malfunctioning -o command-line argument?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stefano Zacchiroli <zack@b...>
Subject: Re: [Caml-list] malfunctioning -o command-line argument?
On Mon, Feb 03, 2003 at 02:59:16PM +0100, Fabrice Le Fessant wrote:
> Arguments are treated in the order they are read: here, foo.ml is
> compiled before, and the -o option is added after. Fix:
> 
> ocamlc -c -o /tmp/foo.cmo foo.ml

This doesn't work for me, are you sure?

   ~$ cat a.ml 
   prerr_endline "a";;
   ~$ ocamlc -c -o /tmp/a.cmo a.ml 
   ~$ ls a.*
   a.cmi  a.cmo  a.ml
   ~$ ls /tmp/a.*
   ls: /tmp/a.*: No such file or directory

Cheers

-- 
Stefano Zacchiroli  -  Undergraduate Student of CS @ Uni. Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it}  -  http://www.bononia.it/zack/
"  I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!  " -- G.Romney
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners