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
ocamlbuild and installed modules and libraries
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-11-16 (18:23)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: ocamlbuild and installed modules and libraries

Is it possible to specify a single installed module (instead of a lib)  
for link time ? That is is there something like -lib but for module so  
that I can type :

ocamlbuild -I +xmlm -mod xmlm test.native

where uses the xmlm module

And what about having special tags use_lib_$LIB and use_mod_$MOD that  
automatically create rules to use libraries $ and module  
$|x) so that just the appropriate -I to find the files has to  
be specified. In most cases having to use a plugin just for that seems  
overkill. Or is there another way ?