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
Howto link cmas with Ocamlbuild
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-10-28 (10:53)
From: Till Crueger <Till.Crueger@g...>
Subject: Howto link cmas with Ocamlbuild

I am working on a small project that is going to include a dynamic  
webserver using Ocsigen and Eliom. I am using Ocamlbuild for the  
compilation. The project is also going to use Batteries and Sexplib. This  
means I need to include Sexplib and Batteries within the .cma file for  
Ocsigen to find the libraries. However when I use the Myocamlbuild plugin  
for Batteries the rules for linking cmas wont use linkpkg flag. Right now  
I compile the full project using ocamlbuild and then I have to repeat the  
last step manually. Is there a better way, to get ocamlbuild to include  
the necessary libraries in the .cma?

Thank you,