caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jan Kybic <kybic@fel.cvut.cz>
To: Maxence Guesdon <maxence.guesdon@inria.fr>
Cc: Caml <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Another question on OcamlDoc
Date: Mon, 15 Sep 2008 15:09:29 +0200	[thread overview]
Message-ID: <871vzlimie.fsf@fel.cvut.cz> (raw)
In-Reply-To: <20080903084850.22daa88d@alcazar.inria.fr> (Maxence Guesdon's message of "Wed, 3 Sep 2008 08:48:50 +0200")

>> Let me add another couple of questions about OcamlDoc. I am sorry if
>> this is a common knowledge.
>> 
>>    - how can I tell OcamlDoc to only process some files?
>>      Actually, the question is rather how to make OcamlDoc ignore the
>>      unresolved dependencies and "Unbound type constructor" errors.
>
> Does it stop ocamldoc or does is end in elements not linked in the final
> doc ?
> If it stops ocamldoc, then this is a compilation problem. Make sure you
> give the same options (-I, -rectypes, ...) to ocamldoc than to ocamlc.
> In th second case, you can use the -hide-warnings option.

I think I know what the problem was. I was compiling a program with
some of the source files in subdirectories, like

  ocalmfind ocamlc <some options> bootstrap/parallel.mli

Now when running ocamldoc like

  ocamlfind ocamldoc <some options> bootstrap/parallel.mli

it was capable of reading the source *.mli file but apparently it
also needs the *.cmi (or *.cmx ?) files which it could not find. So
the solution was to add the "include" option:

  ocamlfind ocamldoc <some options> -I bootstrap bootstrap/parallel.mli

So now everything is working well. Thank you for your help.

Jan 

P.S. I am using the source files from subdirectories as a means of
sharing a source code between projects. It works but it is kind of
fragile. Does anyone have a better method?



-- 
-------------------------------------------------------------------------
Jan Kybic <kybic@fel.cvut.cz>                       tel. +420 2 2435 5721
http://cmp.felk.cvut.cz/~kybic                      ICQ 200569450


  reply	other threads:[~2008-09-15 13:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-02 11:47 Two questions on OCamlDoc David Teller
2008-09-02 12:05 ` [Caml-list] " David Teller
2008-09-02 12:48   ` Another question on OcamlDoc Jan Kybic
2008-09-02 17:19     ` [Caml-list] " David Teller
2008-09-03  6:48     ` Maxence Guesdon
2008-09-15 13:09       ` Jan Kybic [this message]
2008-09-02 13:37   ` [Caml-list] Two questions on OCamlDoc Maxence Guesdon
2008-09-02 13:12 ` Maxence Guesdon
2008-09-05 10:25 ` David Teller
2008-09-05 12:03   ` Maxence Guesdon
2008-09-05 12:33     ` David Teller
2008-09-05 12:37       ` Maxence Guesdon
2008-09-05 12:42         ` David Teller
2008-09-05 12:58           ` Maxence Guesdon

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=871vzlimie.fsf@fel.cvut.cz \
    --to=kybic@fel.cvut.cz \
    --cc=caml-list@yquem.inria.fr \
    --cc=maxence.guesdon@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;
as well as URLs for NNTP newsgroup(s).