From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 3943FBB81 for ; Fri, 18 Nov 2005 13:56:00 +0100 (CET) Received: from parmail01.sgcib.com (parmail01.sgcib.com [207.45.250.33]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jAICtx6g013579 for ; Fri, 18 Nov 2005 13:56:00 +0100 X-IronPort-AV: i="3.97,345,1125871200"; d="scan'208"; a="58736423:sNHT28196636" Content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: RE: [Caml-list] ocamlmktop mystery Date: Fri, 18 Nov 2005 13:50:33 +0100 Message-ID: <7F070E410B10EE419826BF5206322CC2095111@frdef-exmb01.europe.am.socgen> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Caml-list] ocamlmktop mystery Thread-Index: AcXsPiI7P3BWg1ACQTaQLMh9E8rmYAAAGIiQ From: "EL CHAAR Rabih SGAM/AI/SAM" To: "Florian Weimer" , X-OriginalArrivalTime: 18 Nov 2005 12:50:33.0587 (UTC) FILETIME=[AA19C430:01C5EC3E] Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Miltered: at concorde with ID 437DCF5F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocamlmktop:01 lib:01 lib:01 foo:01 toplevel:01 cmi:01 cmo:01 cmx:01 caml-list:01 ocamlmktop:01 toplevel:01 mkdir:01 foo:01 ocamlc:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 The interface file is still in the lib directory. you should do the follwing : #directory "../lib";; # Foo.add;; The toplevel has to see the interface files .cmi in order to get the types,= since this infomation is not in the compiled .cmo or .cmx. Rabih -----Message d'origine----- De : caml-list-bounces@yquem.inria.fr [mailto:caml-list-bounces@yquem.inria.fr]De la part de Florian Weimer Envoy=E9 : vendredi 18 novembre 2005 13:46 =C0 : caml-list@yquem.inria.fr Objet : [Caml-list] ocamlmktop mystery [Repost from comp.lang.functional] I can't use ocamlmktop to build a toplevel using objects in a different directory: $ mkdir lib $ echo let add a b =3D a + b > lib/foo.ml $ ocamlc -c lib/foo.ml $ ocamlmktop -I lib lib/foo.cmo $ ./a.out Objective Caml version 3.08.3 # Foo.add;; Unbound value Foo.add #=20 However, changing to the directory first works as expected: $ cd lib $ ocamlmktop foo.cmo $ /a.out Objective Caml version 3.08.3 # Foo.add;; - : int -> int -> int =3D #=20 What am I doing wrong? _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs ************************************************************************* Ce message et toutes les pieces jointes (ci-apres le "message") sont confid= entiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.=20 Tout message electronique est susceptible d'alteration.=20 SG Asset Management et ses filiales declinent toute responsabilite au titre= de ce message s'il a ete altere, deforme ou falsifie. Decouvrez l'offre et les services de SG Asset Management sur le site www.sg= am.fr=20 ******** This message and any attachments (the "message") are confidential and inten= ded solely for the addressees. Any unauthorised use or dissemination is prohibited.=20 E-mails are susceptible to alteration.=20 Neither SG Asset Management nor any of its subsidiaries or affiliates shall= be liable for the message if altered, changed or falsified.=20 *************************************************************************