From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA27543; Fri, 14 Jun 2002 22:59:41 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA27545 for ; Fri, 14 Jun 2002 22:59:40 +0200 (MET DST) Received: from cs.bu.edu (cs.bu.edu [128.197.12.2]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g5EKxdP28973 for ; Fri, 14 Jun 2002 22:59:39 +0200 (MET DST) Received: from csa.bu.edu (zhudp@csa [128.197.12.3]) by cs.bu.edu (8.12.2/8.12.2) with ESMTP id g5EKxZF2020539; Fri, 14 Jun 2002 16:59:35 -0400 (EDT) Received: from localhost (zhudp@localhost) by csa.bu.edu (8.10.1/8.10.1) with ESMTP id g5EKxVA15756; Fri, 14 Jun 2002 16:59:31 -0400 (EDT) X-Authentication-Warning: csa.bu.edu: zhudp owned process doing -bs Date: Fri, 14 Jun 2002 16:59:31 -0400 (EDT) From: dengping zhu X-Sender: zhudp@csa.bu.edu To: Markus Mottl cc: Markus Mottl , caml-list@inria.fr Subject: Re: [Caml-list] compile problem In-Reply-To: <20020614193826.GA17166@fichte.ai.univie.ac.at> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, Markus, You are right. After I removed all the "module A = struct ... end" from the ml and mli files, it's ok now. But I still can not figure out why all my original files works well if I enter the ocaml mode and # #use "a.mli" # #use "a.ml" I think that it should be consistent in both ways. Dengping On Fri, 14 Jun 2002, Markus Mottl wrote: >On Fri, 14 Jun 2002, dengping zhu wrote: >> Thanks. I tried it, but I still have problems with the *.mli files. >> How should I put all the *.mli files into the Makefile? >> I did as follows: >> Source: a.mli a.ml b.mli b.ml > >You probably mean: > > SOURCES = a.mli a.ml b.mli b.ml > >> But every time the error messages show that it could not find the >> module type which I defined in the mli file. > >Hm, unless you try to access module B from within A, in which case you'd >have to just reorder the modules in the SOURCES-line, it's probably an >error in your definition. If I guess correctly, you may have tried to >define a "module A = struct ... end" in your a.ml file, which you don't >have to, because each file already is a module of the corresponding name. > >Regards, >Markus Mottl > >-- >Markus Mottl markus@oefai.at >Austrian Research Institute >for Artificial Intelligence http://www.oefai.at/~markus >------------------- >To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr >Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ >Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners