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 bug and questions Was: Re: [Caml-list] ocamlbuild: using *.itarget with flags
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-11-22 (16:36)
From: viktor tron <viktor.tron.ml@g...>
Subject: ocamlbuild bug and questions Was: Re: [Caml-list] ocamlbuild: using *.itarget with flags
On 21/11/2007, Nicolas Pouillard < nicolas.pouillard@gmail.com> wrote:
> Excerpts from hmf's message of Wed Nov 21 12:30:28 +0100 2007:
> > The manual states that in the *.itarget
> > files a comment is either a blank or dash.
> > Does this mean:
> >
> > - comment here
> >
> > is a comment? If so, it does not seem
> > to work.
> The manual is wrong on that point, it's a sharp (#) not a dash (-).
> # comment here

I also noticed that. Plus what seems to be a couple of bugs?

$ echo -n '# comment here' > _tags
$ ocamlbuild target
Lexical analysis error: Bad key in configuration line at line 1 (from file:

or even worse

$ echo -n '# comment here:' > _tags
$ ocamlbuild target
Failure: lexing: empty token.

Also:  I had a number of question concerning ocamlbuild in my recent post
about c libs from ocaml.
I elaborate them here, but see my original post for the context.
Does anyone have an illuminating insight?


*  I still don't know the most basic thing, how to build an output-obj o
*  I found no way to convince ocamlbuild to use the local library (in this
example we build
ocamlbuild foo.cmxa
and then would simply want
ocamlopt -o foo foo.cmxa foo_wrapper.ml
but 'ocamlbuild foo_wrapper.native' rebuilds it all the same

* I don't know what the possible tags are, how I add them.

* If I use a syntax extension which has to be build, adding the pp... tag
does not create a dependency which is checked. I don't know how to add this

Help appreciated, but probably a  more detailed manual will solve
this with time.