caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlbuild and ocamlfind - using multiple grammars in a project
@ 2009-04-08  9:59 Hans Ole Rafaelsen
  2009-04-08 13:23 ` [Caml-list] " Romain Bardou
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Ole Rafaelsen @ 2009-04-08  9:59 UTC (permalink / raw)
  To: caml-list

Hi

I'm trying to build a project using ocamlbuild with ocamlfind. One 
submodule requires 'json-static' and another requires 
'bitstring.syntax'. The preprocessors requires different syntaxes, 
resulting in the following error:

ocamlfind: No unique value for the META variable 'preprocessor': package 
camlp4 defines `camlp4', package bitstring.syntax defines `camlp4of'

Is there a way to make a myocamlbuild.ml file to select the preprocessor 
to use on a submodule/file basis?


On a similar topic: Is it possible to tell ocamlbuild to use another 
file than myocamlbuild.ml for additional build instructions? At the 
moment I have a makefile that changes links to different files, but I'm 
not happy too with this method.

Thanks

Hans Ole


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-08 13:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-08  9:59 ocamlbuild and ocamlfind - using multiple grammars in a project Hans Ole Rafaelsen
2009-04-08 13:23 ` [Caml-list] " Romain Bardou
2009-04-08 13:25   ` Romain Bardou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).