caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alain Frisch <alain@frisch.fr>
To: Jean Krivine <jean_krivine@hms.harvard.edu>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] toplevel
Date: Fri, 04 Jul 2008 17:22:29 +0200	[thread overview]
Message-ID: <486E4035.7090004@frisch.fr> (raw)
In-Reply-To: <dc2907b70807040810s3bf93f77tdf33ccdf1c267bc2@mail.gmail.com>

Jean Krivine wrote:
> Hello
> 
> I am trying to make a toplevel including differnent cmo
> (OBJS=./dir1/obj1.cmo ./dir2/obj2.cmo ...) contained in different
> directories
> (OCAMLINCLUDES= -I ./dir1 -I ./dir2 ...).
> If I type make toplevel (see excerpt of my makefile below) I obtain a
> toplevel that does what I want (I can load all my modules from it).
> But when I try to make a toplevel (by doing make toplx) using
> ocamlmktop, the toplevel I obtain doesn't know my modules...
> Can anyone help me?

Your modules are probably linked in the toplevel but you must still pass 
the -I flags to the toplevel to make the .cmi files visible. I believe 
the only way to embed some builtin -I flags in a toplevel is to link in 
a module that talks to the toplevel.

-- Alain


      reply	other threads:[~2008-07-04 15:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-04 15:10 toplevel Jean Krivine
2008-07-04 15:22 ` Alain Frisch [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=486E4035.7090004@frisch.fr \
    --to=alain@frisch.fr \
    --cc=caml-list@yquem.inria.fr \
    --cc=jean_krivine@hms.harvard.edu \
    /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).