From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id CAA20518; Mon, 3 Feb 2003 02:09:01 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA20352 for ; Mon, 3 Feb 2003 02:09:00 +0100 (MET) Received: from d12lmsgate-3.de.ibm.com (d12lmsgate-3.de.ibm.com [194.196.100.236]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h13190P17867 for ; Mon, 3 Feb 2003 02:09:00 +0100 (MET) Received: from d12relay02.de.ibm.com (d12relay02.de.ibm.com [9.165.215.23]) by d12lmsgate-3.de.ibm.com (8.12.3/8.12.3) with ESMTP id h1318u4k012526 for ; Mon, 3 Feb 2003 02:08:56 +0100 Received: from d10ml001.telaviv.ibm.com (d10ml001.telaviv.ibm.com [9.148.216.55]) by d12relay02.de.ibm.com (8.12.3/NCO/VER6.4) with ESMTP id h1318u3m254642 for ; Mon, 3 Feb 2003 02:08:56 +0100 Subject: [Caml-list] malfunctioning -o command-line argument? To: caml-list@inria.fr X-Mailer: Lotus Notes Release 6.0 September 26, 2002 Message-ID: From: "Ohad Rodeh" Date: Sun, 2 Feb 2003 17:04:40 -0800 X-MIMETrack: Serialize by Router on D10ML001/10/M/IBM(Release 5.0.9a |January 7, 2002) at 03/02/2003 03:08:55 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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