caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Leo White <leo@lpw25.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] a question about compiler-libs and Ocaml toplevel
Date: Mon, 12 Mar 2018 06:15:55 -0400	[thread overview]
Message-ID: <1520849755.332963.1299819864.75E77A86@webmail.messagingengine.com> (raw)
In-Reply-To: <2087299b-ff3e-8d0e-6b12-2f29baca6b26@matej-kosik.net>

Aren't you just missing:

  #directory "+compiler-libs";;

to make the cmi files available?

Regards,

Leo

On Mon, 12 Mar 2018, at 5:24 AM, Matej Košík wrote:
> Sorry, the correct way to reproduce the problem is this:
> 
>   In an OCaml toplevel
> 
>     (* following the advice in the documentation
>      * http://caml.inria.fr/pub/docs/manual-ocaml/parsing.html *)
> 
>     # #load "compiler-libs/ocamlcommon.cma";;
> 
>     (* Now, if I try to actually use some of the modules that are supposed
>      * to be provided by this library always leads to a failure. For example: *)
> 
>     # open Parsetree;;
>     Error: Unbound module Parsetree
> 
> I'd like to ask if this is a bug or I just don't understand something.
> 
> (Btw. loading compiler-libs via ocamlfind mechanisms works fine. No 
> surprises there.)
> 
> -- 
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs

  reply	other threads:[~2018-03-12 10:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-11 10:49 Matej Košík
2018-03-12  9:24 ` Matej Košík
2018-03-12 10:15   ` Leo White [this message]
2018-03-12 10:46     ` Matej Košík

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=1520849755.332963.1299819864.75E77A86@webmail.messagingengine.com \
    --to=leo@lpw25.net \
    --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).