caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlgraph
@ 2009-06-25 16:59 Ligia Nistor
  2009-06-25 17:30 ` [Caml-list] ocamlgraph David Allsopp
  0 siblings, 1 reply; 3+ messages in thread
From: Ligia Nistor @ 2009-06-25 16:59 UTC (permalink / raw)
  To: caml-list

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

Hi,

I am trying to use ocamlgraph, but I am getting the  error "Unbound module
Graph". I have the file 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",
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: 1040 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [Caml-list] ocamlgraph
  2009-06-25 16:59 ocamlgraph Ligia Nistor
@ 2009-06-25 17:30 ` David Allsopp
  2009-06-26  8:27   ` Ligia Nistor
  0 siblings, 1 reply; 3+ messages in thread
From: David Allsopp @ 2009-06-25 17:30 UTC (permalink / raw)
  To: 'Ligia Nistor', caml-list

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] ocamlgraph
  2009-06-25 17:30 ` [Caml-list] ocamlgraph David Allsopp
@ 2009-06-26  8:27   ` Ligia Nistor
  0 siblings, 0 replies; 3+ messages in thread
From: Ligia Nistor @ 2009-06-26  8:27 UTC (permalink / raw)
  To: David Allsopp; +Cc: caml-list

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

Thanks, this solved my problem.


On Thu, Jun 25, 2009 at 6:30 PM, David Allsopp <dra-news@metastack.com>wrote:

>  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(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",
> 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: 3183 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-26  8:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-25 16:59 ocamlgraph Ligia Nistor
2009-06-25 17:30 ` [Caml-list] ocamlgraph David Allsopp
2009-06-26  8:27   ` Ligia Nistor

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).