From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 356ACBBAF for ; Thu, 23 Apr 2009 09:42:17 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmcCAKe470kmachml2dsb2JhbACWRwEBAQEBCBUHuEODdQY X-IronPort-AV: E=Sophos;i="4.40,235,1238968800"; d="scan'208";a="25026623" Received: from mx2.janestcapital.com ([38.105.200.102]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Apr 2009 09:42:16 +0200 Received: from nyc-qsv-mail1.delacy.com ([172.25.22.57]) by mx2.janestcapital.com with esmtp (Exim 4.69) (envelope-from ) id 1LwtZW-0008Lm-Ec; Thu, 23 Apr 2009 03:42:14 -0400 Received: from nyc-qsv-004.delacy.com ([172.25.22.194] helo=qsmtp.delacy.com) by nyc-qsv-mail1.DELACY.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LwtZW-0002tm-Cw; Thu, 23 Apr 2009 03:42:14 -0400 Received: from lon-qws-008.delacy.com ([172.30.3.108] helo=lon-qws-008) by qsmtp.delacy.com with smtp (Exim 4.63) (envelope-from ) id 1LwtZV-00046b-90; Thu, 23 Apr 2009 03:42:14 -0400 Received: by lon-qws-008 (sSMTP sendmail emulation); Thu, 23 Apr 2009 08:42:12 +0100 From: "Mark Shinwell" Date: Thu, 23 Apr 2009 08:42:12 +0100 To: David McClain Cc: caml-list@inria.fr Subject: Re: [Caml-list] Threads? Message-ID: <20090423074212.GW29676@janestcapital.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam: no; 0.00; shinwell:01 ocamlopt:01 compilation:01 ocamlfind:01 ocamlopt:01 -thread:01 -package:01 camlp:01 -package:01 usr:01 lib:01 ocaml:01 -thread:01 -cclib:01 cmxa:01 On Thu, Apr 23, 2009 at 12:37:14AM -0700, David McClain wrote: > It's been about 5 years since I faced this situation. I'm trying to link > my program against the Thread module. Things go well until I do the > ocamlopt compilation, then it aborts the make with the message: > > ocamlfind ocamlopt -thread -o sdsp.opt -package camlp4 -package > threads -package unix -I ../src -I /usr/local/lib/ocaml/threads \ > -thread -cclib threads.a nums.cmxa sdsp.cmxa threads/threads.cmxa \ > readline.cmx scmMain.cmx > > File "_none_", line 1, characters 0-1: > Error: No implementations provided for the following modules: > Thread referenced from ../src/sdsp.cmxa(SdlPrims) > make[1]: *** [sdsp.opt] Error 2 > make: *** [subdirs] Error 2 The order of the files on the command line matters here. You need to follow the order given on the page: http://caml.inria.fr/pub/docs/manual-ocaml/manual038.html (in particular it looks like your sdsp.cmxa needs to come after threads.cmxa). Does that make it work? Mark