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 JAA01877; Fri, 17 Oct 2003 09:35:22 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA30614 for ; Fri, 17 Oct 2003 09:35:21 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h9H7ZK116529; Fri, 17 Oct 2003 09:35:20 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA00459; Fri, 17 Oct 2003 09:35:19 +0200 (MET DST) Date: Fri, 17 Oct 2003 09:35:19 +0200 From: Xavier Leroy To: Alex Baretta Cc: ocaml Subject: Re: [Caml-list] Ocaml 3.07+2: Strange error message Message-ID: <20031017093519.B14568@pauillac.inria.fr> References: <3F8F98D4.4020507@baretta.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3F8F98D4.4020507@baretta.com>; from alex@baretta.com on Fri, Oct 17, 2003 at 09:23:00AM +0200 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 3.07:01 threads:01 3.06.:01 plc:99 ocamlc:01 threads:01 model:01 model:01 ocamlc:01 -thread:01 flags:01 3.06,:01 symlinked:01 ocaml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I tried recompiling some code depending on the threads library which > worked just fine in 3.06. Here's what I get: > > [alex@flyingtuxman plc]$ ocamlc threads.cma -c concurrency_model.ml > File "concurrency_model.ml", line 25, characters 19-36: > Unbound value Event.new_channel > > But of course, Event.new_channel *IS* bound and it's definition is in > the threads library. What's going on here? The real error is that ocamlc doesn't find event.cmi. To get access to the interfaces for the thread library, you need to supply the -thread or -vmthread flags to ocamlc. AFAIK, the same error should occur with 3.06, unless you moved or symlinked some files in the standard installation. - Xavier Leroy ------------------- 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