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
[Caml-list] dynlink
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-06 (02:51)
From: Pietro Abate <Pietro.Abate@a...>
Subject: [Caml-list] dynlink
Hi all,
I'm using dynlink for my project and since now I always had really
simple dependecies (each module dependes only to an other module).

As things are getting more complicated I need to have one module
that dependes by many others. My initial solution was to load the
module, look at possible dependecies error and try to solve them. It
works well for the simple case but it fails with multiple deps.

Does anyone can show me how to get the list of (recursive) depcs given a
module ? recursive as a module can depend by an other module that in
turn dependes by many other ...

something like

let depslist = magicfunction filename in (* I get all recrusive deps or fail *)
List.iter (fun f -> Dynlink.loadfile f) (List.rev listdeps) (* I load eveything in order *)


++ "All great truths begin as blasphemies." -George Bernard Shaw
++ Please avoid sending me Word or PowerPoint attachments.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: