caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Ashish Agarwal" <agarwal1975@gmail.com>
To: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
Cc: "Caml List" <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlbuild + ocamldoc + external library problems
Date: Tue, 23 Dec 2008 10:18:36 -0500	[thread overview]
Message-ID: <d8be5ae20812230718q7f5fda4al9dd82216f9832da3@mail.gmail.com> (raw)
In-Reply-To: <1230028123-sup-9915@ausone.local>

[-- Attachment #1: Type: text/plain, Size: 1615 bytes --]

Thank you. That does it. However, it seems not analogous to code
compilation, for which what I did was add
      ocaml_lib ~extern:true ~dir:"~/mylibs" "mylib2";

to myocamlbuild.ml and then use the _tags file to specify which files
require mylib2. I wonder why the call to ocamldoc cannot use the same
dependency information generated to compile an interface file. The same
libraries are needed to compile an interface file to a cmi file or to
documentation.


On Tue, Dec 23, 2008 at 5:32 AM, Nicolas Pouillard <
nicolas.pouillard@gmail.com> wrote:

> Excerpts from Ashish Agarwal's message of Tue Dec 23 03:01:38 +0100 2008:
> > How can I get ocamlbuild to include paths to external libraries when
> > building documentation?
> > Ocamlbuild gives me errors when building documentation, when my interface
> > files contain references to an external library. I have set up my plugin
> and
> > _tags file to correctly compile the code, but cannot get the
> documentation
> > to work. The command that ocamlbuild executes is [1], which gives error
> > [2]. Module M is declared in an external library. I get no errors if I
> > manually type [3], where ~/mylibs contains the appropriate library.
> > [1] ocamlfind ocamldoc -dump a.odoc a.mli
> > [2] Unbound module M
> > [3] ocamlfind ocamldoc -dump a.odoc -I ~/mylibs/ a.mli
>
> You should give the same flags for building and generating the
> documentation,
> for instance if you have:
>
>   flag ["ocaml", "compile"] (S[A"-I"; A".../mylibs"])
>
> Then you need:
>
>   flag ["ocaml", "doc"] (S[A"-I"; A".../mylibs"])
>
> HTH,
>
> --
> Nicolas Pouillard aka Ertai
>

[-- Attachment #2: Type: text/html, Size: 2258 bytes --]

      parent reply	other threads:[~2008-12-23 15:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-23  2:01 Ashish Agarwal
     [not found] ` <1230028123-sup-9915@ausone.local>
2008-12-23 15:18   ` Ashish Agarwal [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=d8be5ae20812230718q7f5fda4al9dd82216f9832da3@mail.gmail.com \
    --to=agarwal1975@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=nicolas.pouillard@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).