caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe TROESTLER <Christophe.Troestler+ocaml@umons.ac.be>
To: OCaml Mailing List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Toplevel - load cmo from given location
Date: Fri, 09 Jan 2009 15:39:39 +0100 (CET)	[thread overview]
Message-ID: <20090109.153939.9450351754532580.Christophe.Troestler+ocaml@umons.ac.be> (raw)
In-Reply-To: <496759E1.3070104@uj.edu.pl>

On Fri, 09 Jan 2009 14:06:25 +0000, Dawid Toton wrote:
> 
> I've noticed stange behaviour:
> 
> The following works OK (using #directory directive):
> 
> #!/usr/bin/ocamlrun ocaml
> #directory "/home/dt2/Calc1/CalcEngine/src/_build/extlib/"
> #load "enum.cmo"
> open Enum
> 
> But this version not (using the full path directly):
> 
> #!/usr/bin/ocamlrun ocaml
> #load "/home/dt2/Calc1/CalcEngine/src/_build/extlib/enum.cmo"
> open Enum
> 
> The problem is that it gives "Unbound module Enum" while no error about loading the cmo&cmi is shown.

The #directory instruction is needed to find the .cmi.

My 0.02€,
ChriS


  reply	other threads:[~2009-01-09 14:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-09 14:06 Dawid Toton
2009-01-09 14:39 ` Christophe TROESTLER [this message]
2009-01-09 15:08   ` [Caml-list] " Dawid Toton
2009-01-09 21:39     ` Richard Jones
2009-01-09 17:33 ` Zheng Li

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=20090109.153939.9450351754532580.Christophe.Troestler+ocaml@umons.ac.be \
    --to=christophe.troestler+ocaml@umons.ac.be \
    --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;
as well as URLs for NNTP newsgroup(s).