Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Compiling recursive modules into a .cma.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-10-21 (04:55)
From: Guillaume Yziquel <guillaume.yziquel@b...>
Subject: Re: [Caml-list] Compiling recursive modules into a .cma.
Stéphane Glondu a écrit :
> It seems that chain.cmo is linked before protection.cmo inside the .cma.
>  The order of modules inside of a .cma file is important. The behaviour
> is the same as if they were #loaded in the same order in a toplevel. Try
> writing explicitly all .ml files of $(SOURCE) in topological order.

Yes. Indeed. This is the problem. I was misled by the fact that
compiling things manually and in order didn't work at first, and I
believed something else was wrong, but I was mistaken.

It now works. Thanks.