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 OAA12185; Sun, 22 Feb 2004 14:04:02 +0100 (MET) 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 OAA11814 for ; Sun, 22 Feb 2004 14:04:01 +0100 (MET) Received: from tornado.force (cs1-ats25-dzer-228.dialup.mts-nn.ru [213.177.121.228]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1MD3jae031882 for ; Sun, 22 Feb 2004 14:03:46 +0100 Received: from tornado.force (tornado.force [127.0.0.1]) by tornado.force (8.12.10/8.12.10) with ESMTP id i1MD5BQ3023134; Sun, 22 Feb 2004 16:05:13 +0300 Received: (from kamil@localhost) by tornado.force (8.12.10/8.12.10/Submit) id i1LMaSTm016094; Sun, 22 Feb 2004 01:36:28 +0300 X-Authentication-Warning: tornado.force: kamil set sender to kamils@inbox.ru using -f X-Comment-To: Galchin Vasili To: Galchin Vasili Cc: caml-list@inria.fr Subject: Re: [Caml-list] Problem with linking threaded program References: <20040221210246.90642.qmail@web12207.mail.yahoo.com> Organization: niimash From: Kamil Shakirov Date: Sun, 22 Feb 2004 01:36:28 +0300 In-Reply-To: <20040221210246.90642.qmail@web12207.mail.yahoo.com> (Galchin Vasili's message of "Sat, 21 Feb 2004 13:02:46 -0800 (PST)") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 ocamlc:01 -thread:01 threads:01 usr:01 threads:01 unix':01 ocamlc:01 -thread:01 ocaml's:01 ocaml:01 -custom:01 -custom:01 lib:01 writes:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk hello, Galchin Vasili writes: > When I try to compile/link a simple thread program I get: > > [vigalchin@localhost OCAMLJUNK]$ ocamlc -thread > -custom threads.cma thread.ml -cclib -lthreads > Error while linking > /usr/lib/ocaml/threads/threads.cma(Thread): > Reference to undefined global `Unix' > > > Can anybody help? You forgot to point Unix library. ocamlc -thread -custom threads.cma unix.cma thread.ml ^^^^^^^^ Read the OCaml's documentaton and the user's manual. ;) -- kamil ------------------- 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