From: Hans Ole Rafaelsen <hans@simula.no>
To: Gerd Stolpmann <info@gerd-stolpmann.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Problem with findlib and threads
Date: 15 Oct 2002 10:08:24 +0200 [thread overview]
Message-ID: <3azy990f7k7.fsf@itherther.simula.no> (raw)
In-Reply-To: <20021014215927.GK1002@ice.gerd-stolpmann.de>
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
prev parent reply other threads:[~2002-10-15 8:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-14 13:59 Hans Ole Rafaelsen
2002-10-14 21:59 ` Gerd Stolpmann
2002-10-15 8:08 ` Hans Ole Rafaelsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3azy990f7k7.fsf@itherther.simula.no \
--to=hans@simula.no \
--cc=caml-list@inria.fr \
--cc=info@gerd-stolpmann.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox