English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

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 test.ml uses the xmlm module

And what about having special tags use_lib_$LIB and use_mod_$MOD that  
automatically create rules to use libraries $LIB.cm(x)a and module  
$MOD.cm(o|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 ?