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-17 (10:08)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: Re: [Caml-list] ocamlbuild and installed modules and libraries

Le 17 nov. 08 ŕ 10:54, Romain Bardou a écrit :

> Isn't it almost as simple to write, in a script:
>  ocamlbuild -cflags -I,$DEPDIR -lflags -I,$DEPDIR
> instead of:
>  ocamlbuild -I $DEPDIR
> Remember that $DEPDIR must be absolute, or relative to the _build  
> directory.

Yes, I can live with that.

> And for modules, instead of -lib bla, you write -lflags bla.cmo or - 
> lflags bla.cmx. You can have several -lflags if you want.  
> Unfortunately you have to specify the extension, so it is true that  
> a -mod option would actually add something.

That is the point, from my perspective the problem is solved for  
libraries but not for single modules.