Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Problem with findlib and threads
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Hans Ole Rafaelsen <hans@s...>
Subject: Re: [Caml-list] Problem with findlib and threads
It did help.

There was just a minor problem using -thread.  It requires that a
multitreaded version of the xmlrpc library is provided.  Making a copy
of xmlrpc.cma to xmlrpc_mt.cma and the same for the .cmxa and .a file,
and then installing these files as part of xmlrpc package solved those
problems.


Thanks,

Hans Ole

Gerd Stolpmann <info@gerd-stolpmann.de> writes:

> 
> Maybe -thread is missing? Selecting the package "threads" without -thread does
> not have any effect.
> 
> 
> Linking a library with libraries does not work for native code. Btw, your approach
> would also not work if ocaml had been configured for bytecode threads, because the
> -thread option has a special effect in this case (selects a different version of the
> standard library). This is why ocamlfind demands -thread always, even if the
> ocaml compiler sometimes does not need it (when linking executables for POSIX threads).
> 
> Simply follow the rule: Give both -thread and -package threads for compiling
> and linking.
> 
> I hope this helps,
> 
> Gerd
> 
> ------------------------------------------------------------
> Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
> gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
> ------------------------------------------------------------
-------------------
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