English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2003-02-06 (10:16)
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


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