caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: rixed@happyleptic.org
To: caml-list@inria.fr
Subject: Re: [Caml-list] Calling the toplevel from the toplevel
Date: Thu, 3 Mar 2011 19:34:40 +0100	[thread overview]
Message-ID: <20110303183439.GA10881@yeeloong.happyleptic.org> (raw)
In-Reply-To: <20110227120027.GA3544@aurora>

> Actually you can, you just have to make sure that .cmi files are
> available in the search paths of the toplevel when you run your
> application.

Now I think I'm seeing what you was refering to.
This problem seams to be general to ocaml. For instance, if I have
a directory foo with object files bar.cmo and cmi in it, then from
ocaml:

# #load "foo/bar.cmo";;
# module X = Bar;;
Error: Unbound module Bar

While if I copy bar.cmi into the current directory the module Bar is
bound.

I find it weird that the cmi is not looked for in the same directory
where the cmo was found. Is there a way to change this ?


      parent reply	other threads:[~2011-03-03 18:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-26 21:44 rixed
2011-02-27  2:45 ` Guillaume Yziquel
2011-02-27 10:52   ` rixed
2011-02-27 12:00 ` Jérémie Dimino
2011-02-28 18:28   ` rixed
2011-02-28 20:30     ` Jérémie Dimino
2011-02-28 21:14       ` Yoann Padioleau
2011-03-03 18:34   ` rixed [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=20110303183439.GA10881@yeeloong.happyleptic.org \
    --to=rixed@happyleptic.org \
    --cc=caml-list@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).