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 VAA26059; Fri, 14 Jun 2002 21:38:31 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA24817 for ; Fri, 14 Jun 2002 21:38:30 +0200 (MET DST) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g5EJcT505868 for ; Fri, 14 Jun 2002 21:38:29 +0200 (MET DST) Received: (from markus@localhost) by fichte.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id VAA17334; Fri, 14 Jun 2002 21:38:26 +0200 Date: Fri, 14 Jun 2002 21:38:26 +0200 From: Markus Mottl To: dengping zhu Cc: Markus Mottl , caml-list@inria.fr Subject: Re: [Caml-list] compile problem Message-ID: <20020614193826.GA17166@fichte.ai.univie.ac.at> Mail-Followup-To: dengping zhu , Markus Mottl , caml-list@inria.fr References: <20020614153018.GB10973@kiefer.ai.univie.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: Austrian Research Institute for Artificial Intelligence Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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