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
ocamlopt -a and module order
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-01-24 (22:04)
From: Martin Jambon <martin_jambon@e...>
Subject: Re: [Caml-list] ocamlopt -a and module order
On Tue, 24 Jan 2006, Florian Weimer wrote:

> When creating libraries using ocamlopt -a, it seems that it is
> necessary to give the modules on the command line in such an order
> that all inter-module references are to modules which precede on the
> command line.  Otherwise, I get link-time errors when using the
> library.
> In my case, there are no cyclic module references, and there is no
> requirement that the modules are initialized in a particular order
> (beyond that what is implied by explicit references), so a simple
> topological sort could come up with a proper ordering.  Is there some
> way to have ocamlopt do this for me?

ocamldsort can do that.


Martin Jambon, PhD

Visit, the Bioinformatics Howto Wiki