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 UAA21642; Wed, 16 Jan 2002 20:49:19 +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 UAA21487 for ; Wed, 16 Jan 2002 20:49:18 +0100 (MET) Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g0GJnHv08811 for ; Wed, 16 Jan 2002 20:49:17 +0100 (MET) Received: from mel-rta1.wanadoo.fr (193.252.19.150) by mel-rto2.wanadoo.fr; 16 Jan 2002 20:49:17 +0100 Received: from debian (80.8.75.156) by mel-rta1.wanadoo.fr; 16 Jan 2002 20:48:56 +0100 Received: from moi by debian with local (Exim 3.33 #1 (Debian)) id 16Qw3U-0000W6-00 for ; Wed, 16 Jan 2002 20:49:04 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] error messages to stdout? References: <15429.3000.625598.380078@ns.bagley.org> From: Remi VANICAT Date: 16 Jan 2002 20:49:04 +0100 In-Reply-To: <15429.3000.625598.380078@ns.bagley.org> Message-ID: <87n0ze9ivj.dlv@wanadoo.fr> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Doug Bagley writes: > I've been learning how to use Ocaml for writing scripts, and I've > encountered a small problem. > > By "scripts", I mean they have the canonical custom toplevel in the > interpreter line. They also dynamically load libs. > > I had updated one lib and not another that depended on it, so I got a > message like so, to stdout: > > File /usr/local/lib/ocaml/contrib/fs_lib.cma is not up-to-date with respect to > interface Pcre > > The problem was that I piped my ocaml script's output to a file that > was supposed to just contain data, and then I graphed it, so the error > message showed up in a graph, which was kind of funny but not what I > expected. I use pipes and filters a lot, so this could really put a > wrench in my plans. > > Anyway, it would be like, cool, if I could get those errors going to > stderr instead, or be enlightened as to the error of my > ways. Thanks. you should compile your program to (at least) bytecode code. It will be faster, and those kind of error will only exist at compile time, not at execution time... ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr