Version française
Home     About     Download     Resources     Contact us    
Browse thread
Threads?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David McClain <dbm@r...>
Subject: Re: [Caml-list] Threads?
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
>