Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] compile problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: dengping zhu <zhudp@c...>
Subject: Re: [Caml-list] compile problem
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