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 258C0BB81 for ; Fri, 18 Nov 2005 14:36:01 +0100 (CET) Received: from mail.enyo.de (mail.enyo.de [212.9.189.167]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jAIDa0cJ018485 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 18 Nov 2005 14:36:00 +0100 Received: from deneb.vpn.enyo.de ([212.9.189.177] helo=deneb.enyo.de) by albireo.enyo.de with esmtp id 1Ed6PG-0004WC-UD; Fri, 18 Nov 2005 14:35:58 +0100 Received: from fw by deneb.enyo.de with local (Exim 4.54) id 1Ed6PE-0000Oj-Ko; Fri, 18 Nov 2005 14:35:56 +0100 From: Florian Weimer To: "EL CHAAR Rabih SGAM/AI/SAM" Cc: Subject: Re: [Caml-list] ocamlmktop mystery References: <7F070E410B10EE419826BF5206322CC2095111@frdef-exmb01.europe.am.socgen> Date: Fri, 18 Nov 2005 14:35:56 +0100 In-Reply-To: <7F070E410B10EE419826BF5206322CC2095111@frdef-exmb01.europe.am.socgen> (EL CHAAR Rabih's message of "Fri, 18 Nov 2005 13:50:33 +0100") Message-ID: <87sltu13k3.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde with ID 437DD8C0.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 binary:01 cmi:01 topdirs:01 infomation:98 florian:02 types:02 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 * EL CHAAR Rabih: > 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. Ah, this explains it. Thanks a lot. Is there some way to hard-code the paths in the binary (or include the .cmi files themselves)? Currently, I use Topdirs.dir_directory to set the directories, which seems to work, but smells a bit like abusing an internal interface.