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=0.0 required=5.0 tests=HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr 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 3287BBBAF for ; Thu, 23 Apr 2009 10:24:08 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlACAMvB70nRVllDlGdsb2JhbACCUpN2AQEBAQkLCAkRA6diCZBmAYJAgTQG X-IronPort-AV: E=Sophos;i="4.40,235,1238968800"; d="scan'208,217";a="25029852" Received: from elasmtp-scoter.atl.sa.earthlink.net ([209.86.89.67]) by mail2-smtp-roc.national.inria.fr with ESMTP; 23 Apr 2009 10:24:07 +0200 Received: from [69.139.210.102] (helo=[10.0.1.194]) by elasmtp-scoter.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1LwuE2-0001pz-79; Thu, 23 Apr 2009 04:24:06 -0400 In-Reply-To: <20090423074212.GW29676@janestcapital.com> References: <20090423074212.GW29676@janestcapital.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: multipart/alternative; boundary=Apple-Mail-1-174818938 Message-Id: <99CF7BBF-EB41-41B9-9A35-64EBEF336752@refined-audiometrics.com> Cc: caml-list@inria.fr From: David McClain Subject: Re: [Caml-list] Threads? Date: Thu, 23 Apr 2009 01:23:43 -0700 To: "Mark Shinwell" X-Mailer: Apple Mail (2.753.1) X-ELNK-Trace: 7a0ab3eafc8cf994b22988ad1c62733440683398e744b8a4653d8197b0e0cdc9f780f183e12a132f350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 69.139.210.102 X-Spam: no; 0.00; cheers:01 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 --Apple-Mail-1-174818938 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed OMG!! You are a Prince! Thank you so much! Cheers, Dr. David McClain Chief Technical Officer Refined Audiometrics Laboratory 4391 N. Camino Ferreo Tucson, AZ 85750 email: dbm@refined-audiometrics.com phone: 1.520.390.3995 web: http://www.refined-audiometrics.com On Apr 23, 2009, at 00:42, Mark Shinwell wrote: > 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 > --Apple-Mail-1-174818938 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 OMG!! You are a Prince! Thank you so = much!

Cheers,

Dr. David McClain
Chief = Technical Officer
Refined Audiometrics = Laboratory
4391 N. Camino Ferreo
Tucson, AZ=A0 85750


=

On Apr 23, 2009, at 00:42, Mark Shinwell = wrote:

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=A0
my = program against the Thread module. Things go well until I do the=A0
ocamlopt = compilation, then it aborts the make with the message:

=A0 -package camlp4 -package = =A0
threads -package unix -I ../src -I = /usr/local/lib/ocaml/threads=A0 = \
-thread -cclib threads.a=A0 nums.cmxa sdsp.cmxa = threads/threads.cmxa =A0 = \
readline.cmx = scmMain.cmx

File "_none_", line 1, characters 0-1:
Error: No implementations provided for the following = modules:
=A0=A0 =A0 =A0 =A0 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.=A0 You need to = follow
the order given on the = page:


(in = particular it looks like your sdsp.cmxa needs to come after = threads.cmxa).
Does that make it = work?

Mark


= --Apple-Mail-1-174818938--