Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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


Hans Ole

Gerd Stolpmann <> 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 
> ------------------------------------------------------------
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: