caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] malfunctioning -o command-line argument?
@ 2003-02-03  1:04 Ohad Rodeh
  2003-02-03  1:24 ` Nicolas George
  0 siblings, 1 reply; 5+ messages in thread
From: Ohad Rodeh @ 2003-02-03  1:04 UTC (permalink / raw)
  To: caml-list

List,
   I don't know how I haven't noticed this behavior before, but it seems
like the -o command-line argument for ocamlc/ocamlopt does not work in all
cases.
For example, if  foo.ml is a file then:
      ocamlc -c foo.ml -o /tmp/foo.cmo
will create foo.cmo in the current directory rather then /tmp.
This is also the case for .mli files. Furthermore, if I compile an .mli
file, move the .cmi file to /tmp, and compile the .ml like this:
      ocamlc -c foo.mli
      mv foo.cmi  /tmp
      ocamlc -I /tmp -c foo.ml
Then ocamlc will not be able to find foo.cmi.

Is this a bug or a feature?

For what I'm doing right now (multi-achitecture compilation support) I'd
really like this to work.

      Ohad.
-----------------------------------------------------------------------------------

Ohad Rodeh
tel: +972-3-6401641
IBM Haifa, storage research

-------------------
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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-02-06 10:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-03  1:04 [Caml-list] malfunctioning -o command-line argument? Ohad Rodeh
2003-02-03  1:24 ` Nicolas George
2003-02-03  1:32   ` Ohad Rodeh
2003-02-03 13:59   ` Fabrice Le Fessant
2003-02-06  8:14     ` Stefano Zacchiroli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).