caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "David Allsopp" <dra-news@metastack.com>
To: "'Ligia Nistor'" <ligia.nicoleta@gmail.com>, <caml-list@yquem.inria.fr>
Subject: RE: [Caml-list] ocamlgraph
Date: Thu, 25 Jun 2009 18:30:27 +0100	[thread overview]
Message-ID: <004a01c9f5ba$a3515b70$e9f41250$@metastack.com> (raw)
In-Reply-To: <8401c38a0906250959r5c99eac1g55a77e002dbf7ac3@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]

You need to say

 

                #directory "ocamlgraph";;

 

Before you #use your file so that the toploop can find graph.cmi

 

 

David

 

From: caml-list-bounces@yquem.inria.fr
[mailto:caml-list-bounces@yquem.inria.fr] On Behalf Of Ligia Nistor
Sent: 25 June 2009 18:00
To: caml-list@yquem.inria.fr
Subject: [Caml-list] ocamlgraph

 

Hi,

I am trying to use ocamlgraph, but I am getting the  error "Unbound module
Graph". I have the file demo.ml <http://demo.ml/> (from the site
http://ocamlgraph.lri.fr/) which contains the line "open Graph". I write in
the interpreter "#load ocamlgraph/graph.cmo" and it finds it. But then when
I write #use "demo.ml <http://demo.ml/> ", I get the above error. 

I copied the content of the folder \usr\lib\ocaml\3.10.2\ocamlgraph  (which
includes the graph files) to \usr\lib\ocaml\3.10.2\ ,where all the other
implemented modules are( such as List, Printf).After I did this, the error
"unbound module Graph" disappeared. But I want to leave the graph files in
the folder usr\lib\ocaml\3.10.2\ocamlgraph  and show to the interpreter
where to find Graph module.

How can I do this?

Thanks,
Ligia


[-- Attachment #2: Type: text/html, Size: 4745 bytes --]

  reply	other threads:[~2009-06-25 17:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-25 16:59 ocamlgraph Ligia Nistor
2009-06-25 17:30 ` David Allsopp [this message]
2009-06-26  8:27   ` [Caml-list] ocamlgraph Ligia Nistor

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='004a01c9f5ba$a3515b70$e9f41250$@metastack.com' \
    --to=dra-news@metastack.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=ligia.nicoleta@gmail.com \
    /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).