Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-06-25 (17:30)
From: David Allsopp <dra-news@m...>
Subject: RE: [Caml-list] ocamlgraph
You need to say


                #directory "ocamlgraph";;


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





[] On Behalf Of Ligia Nistor
Sent: 25 June 2009 18:00
Subject: [Caml-list] ocamlgraph



I am trying to use ocamlgraph, but I am getting the  error "Unbound module
Graph". I have the file <> (from the site 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 " <> ", 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?