From: Dario Teixeira <darioteixeira@yahoo.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Ocamlnet and EINPROGRESS
Date: Thu, 3 Apr 2008 14:33:13 +0100 (BST) [thread overview]
Message-ID: <974585.31607.qm@web54604.mail.re2.yahoo.com> (raw)
In-Reply-To: <47F4834D.6010800@glondu.net>
> With these rules, you link the Unix module twice. Try without -linkpkg
> in the first rule. More generally, avoid using -linkpkg when making .cma
> unless you know what you are doing (use it only in the final stage of
> linking).
Indeed. And on that note I would like to report a similar problem
with the "ocamlfind+ocamlbuild" plugin that was discussed on this
list some weeks ago, and available on the Ocamlbuild wiki:
http://brion.inria.fr/gallium/index.php/Using_ocamlfind_with_ocamlbuild
This is the offending code:
(* When one link an OCaml library/binary/package, one should use -linkpkg.
*)
flag ["ocaml"; "link"] & A"-linkpkg";
As Stéphane mentioned, -linkpkg should normally not be used on libraries.
(I have personally run into problems because of this). The solution I
am using is to apply -linkpkg only when linking programmes:
(* When linking Ocaml programmes (and programmes only!), we use -linkpkg.
*)
flag ["ocaml"; "link"; "program"] & A"-linkpkg";
Regards,
Dario Teixeira
___________________________________________________________
Yahoo! For Good helps you make a difference
http://uk.promotions.yahoo.com/forgood/
prev parent reply other threads:[~2008-04-03 13:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-03 1:06 Yitzhak Mandelbaum
2008-04-03 1:52 ` [Caml-list] " Eric Cooper
2008-04-03 2:08 ` Yitzhak Mandelbaum
2008-04-03 2:30 ` Eric Cooper
2008-04-03 2:43 ` Yitzhak Mandelbaum
2008-04-03 7:12 ` Stéphane Glondu
2008-04-03 13:33 ` Dario Teixeira [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=974585.31607.qm@web54604.mail.re2.yahoo.com \
--to=darioteixeira@yahoo.com \
--cc=caml-list@yquem.inria.fr \
/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