caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Ohad Rodeh" <ORODEH@il.ibm.com>
To: caml-list@inria.fr
Subject: [Caml-list] malfunctioning -o command-line argument?
Date: Sun, 2 Feb 2003 17:04:40 -0800	[thread overview]
Message-ID: <OFD13AAEAC.F3E2A651-ON08256CC2.00056F1C-08256CC2.0005EBC7@telaviv.ibm.com> (raw)

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


             reply	other threads:[~2003-02-03  1:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-03  1:04 Ohad Rodeh [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OFD13AAEAC.F3E2A651-ON08256CC2.00056F1C-08256CC2.0005EBC7@telaviv.ibm.com \
    --to=orodeh@il.ibm.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).