Version française
Home     About     Download     Resources     Contact us    
Browse thread
building executables with camlp4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] building executables with camlp4
> But this doesn't:
>
>       $ ocamlc -g -linkall -I /usr/local/ocaml/lib/ocaml/camlp4  \
>         -o minimal \
>         camlp4lib.cma \
>         unix.cma \
>         Camlp4Parsers/Camlp4OCamlRevisedParser.cmo \
>         Camlp4Parsers/Camlp4OCamlParser.cmo \
>         Camlp4Printers/Camlp4OCamlPrinter.cmo \
>         Camlp4Bin.cmo \
>         minimal.cmo
>       $ ./minimal input.ml
>       File "input.ml", line 1, characters 35-36:
>       Parse error: ident_of_ctyp: this type is not an identifier
>

Try to put Camlp4Bin before minimal, since it's the main so the init
section of this module is the starting point.

-- 
Nicolas Pouillard