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
[Caml-list] camlp4 in script
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-11-04 (21:15)
From: Issac Trotts <ijtrotts@u...>
Subject: Re: [Caml-list] camlp4 in script
On Tue, Nov 04, 2003 at 03:25:41PM -0500, Lars Nilsson wrote:
>  > I think no one suggested it because ocamlmktop creates a toplevel 
>  > that doesn't automatically include the +camlp4 directory.  
>  > The -I +camlp4 directive passed to ocamlmktop is only used to
>  > find the .cmo and .cma files while making the new toplevel.
> That could explain some of my problems I had when trying to test it. I
> just put it down as a complete lack of understanding of how to work
> with camlp4 (I haven't felt a deep need for it before, so much of it
> is still a mystery to me). I did get something working, but it was a
> very tiny example, and perhaps it just didn't reference anything in
> manner that would require the #directory statement (I think I just
> used the stream parser functionality in camlp4o).

That's probably it.  My earlier post in this thread shows how to work around
this problem by making a new executable that makes a system call
to the ocaml toplevel with the extra -I arguments.

Issac Trotts

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: