From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 2031FBBAF for ; Thu, 25 Jun 2009 19:30:51 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsBAIBQQ0pRZ90wkWdsb2JhbACCVJYhAQEBAQkLCgcTA7k0hA0F X-IronPort-AV: E=Sophos;i="4.42,292,1243807200"; d="scan'208,217";a="30178471" Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]) by mail3-smtp-sop.national.inria.fr with ESMTP; 25 Jun 2009 19:30:45 +0200 Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090625173044.NGVE6611.mtaout02-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com>; Thu, 25 Jun 2009 18:30:44 +0100 Received: from romulus.metastack.com ([81.102.132.77]) by aamtaout04-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090625173044.EOGD22934.aamtaout04-winn.ispmail.ntl.com@romulus.metastack.com>; Thu, 25 Jun 2009 18:30:44 +0100 Received: from Tenor ([212.183.134.67]) (authenticated bits=0) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id n5PHUYJE010592 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 25 Jun 2009 18:30:37 +0100 From: "David Allsopp" To: "'Ligia Nistor'" , References: <8401c38a0906250959r5c99eac1g55a77e002dbf7ac3@mail.gmail.com> In-Reply-To: <8401c38a0906250959r5c99eac1g55a77e002dbf7ac3@mail.gmail.com> Subject: RE: [Caml-list] ocamlgraph Date: Thu, 25 Jun 2009 18:30:27 +0100 Message-ID: <004a01c9f5ba$a3515b70$e9f41250$@metastack.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_004B_01C9F5C3.0515C370" X-Mailer: Microsoft Office Outlook 12.0 thread-index: Acn1tl2az6Dt3VdjQIqwS5td2Cme/wABCHRw Content-Language: en-gb Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 81.102.132.77 X-Cloudmark-Analysis: v=1.0 c=1 a=cf_7m7lEAAAA:8 a=sUxTU90mAAAA:8 a=SNB0u6I9-NWA0J702oMA:9 a=HJYcOt0XOAZqjl8Q7YMRofsu1AEA:4 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8 a=qbKCJQZfx1o5-wcW0nIA:7 a=WQ-10DM-NiTVuVtcvVCf6eCTxV0A:4 X-Spam: no; 0.00; toploop:01 cmi:01 lri:01 cmo:01 usr:01 lib:01 ocaml:01 usr:01 lib:01 ocaml:01 printf:01 toploop:01 cmi:01 lri:01 printf:01 This is a multi-part message in MIME format. ------=_NextPart_000_004B_01C9F5C3.0515C370 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_004B_01C9F5C3.0515C370 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

You need to say

 =

  = ;            =   #directory "ocamlgraph";;

 =

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

 =

 =

David<= /o:p>

 =

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

------=_NextPart_000_004B_01C9F5C3.0515C370--