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=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id BD508BB84 for ; Fri, 4 Jul 2008 17:22:33 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApICAIHdbUhQDPIaWmdsb2JhbACSSwEWBQIGBBQDnUg X-IronPort-AV: E=Sophos;i="4.30,302,1212357600"; d="scan'208";a="12828903" Received: from smtp20.orange.fr ([80.12.242.26]) by mail2-smtp-roc.national.inria.fr with ESMTP; 04 Jul 2008 17:22:33 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2028.orange.fr (SMTP Server) with ESMTP id 4E4F01C0006F; Fri, 4 Jul 2008 17:22:33 +0200 (CEST) Received: from [192.168.1.66] (APuteaux-154-1-63-71.w81-249.abo.wanadoo.fr [81.249.70.71]) by mwinf2028.orange.fr (SMTP Server) with ESMTP id 1B3301C00055; Fri, 4 Jul 2008 17:22:33 +0200 (CEST) X-ME-UUID: 20080704152233111.1B3301C00055@mwinf2028.orange.fr Message-ID: <486E4035.7090004@frisch.fr> Date: Fri, 04 Jul 2008 17:22:29 +0200 From: Alain Frisch User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Jean Krivine Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] toplevel References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; frisch:01 frisch:01 toplevel:01 krivine:01 toplevel:01 cmo:01 objs:01 cmo:01 makefile:01 ocamlmktop:01 flags:01 cmi:01 flags:01 wrote:01 caml-list:01 Jean Krivine wrote: > Hello > > I am trying to make a toplevel including differnent cmo > (OBJS=./dir1/obj1.cmo ./dir2/obj2.cmo ...) contained in different > directories > (OCAMLINCLUDES= -I ./dir1 -I ./dir2 ...). > If I type make toplevel (see excerpt of my makefile below) I obtain a > toplevel that does what I want (I can load all my modules from it). > But when I try to make a toplevel (by doing make toplx) using > ocamlmktop, the toplevel I obtain doesn't know my modules... > Can anyone help me? Your modules are probably linked in the toplevel but you must still pass the -I flags to the toplevel to make the .cmi files visible. I believe the only way to embed some builtin -I flags in a toplevel is to link in a module that talks to the toplevel. -- Alain