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 (20:58)
From: Florian Weimer <fw@d...>
Subject: ocamlopt -a and module order
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

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?