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 WAA17776; Sat, 21 Feb 2004 22:24:50 +0100 (MET) 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 WAA18010 for ; Sat, 21 Feb 2004 22:24:49 +0100 (MET) Received: from deliver.epitech.net (deliver.epitech.net [163.5.0.25]) by concorde.inria.fr (8.12.10/8.12.10) with SMTP id i1LLOmaf021686 for ; Sat, 21 Feb 2004 22:24:48 +0100 Received: from epita.fr ([10.42.1.60]) by deliver.epitech.net (SAVSMTP 3.1.2.35) with SMTP id M2004022122222805271 ; Sat, 21 Feb 2004 22:22:28 +0100 Received: from kualalumpur.lrde.epita.fr (kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id i1LLOgA29003 Sat, 21 Feb 2004 22:24:42 +0100 (CET) Received: from sandrock.lrde.epita.fr ([10.223.13.45]) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.36 #1 (Debian)) id 1AuecN-0004N4-00; Sat, 21 Feb 2004 22:24:59 +0100 Received: from chojin by sandrock.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 1AuecN-0002WH-00; Sat, 21 Feb 2004 22:24:59 +0100 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> From: ChoJin Date: Sat, 21 Feb 2004 22:24:59 +0100 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.1006 (Gnus v5.10.6) XEmacs/21.4 (Reasonable Discussion, 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 lrde:01 ocamlc:01 -thread:01 threads:01 usr:01 threads:01 unix':01 ocaml:01 -custom:01 lib:01 writes:01 threaded:02 compile:02 compile:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Galchin Vasili writes: > Hello, > > 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' Either you can use OCamlMakefile and just define THREADS = yes or you can add unix.cma before threads.cma in your compile line and it should work. -- Best Regards ChoJin ------------------- 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