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-03 (15:05)
From: Artem Prisyznuk <tema@s...>
Subject: [Caml-list] camlp4 in script

If I want call ocaml script from shell I type next header for
this script:

   #!/usr/bin/ocamlrun /usr/bin/ocaml

   print_string "Hello\n";;

But if I want use camlp4 for source of script, I try next source

   #!/usr/bin/ocamlrun /usr/bin/ocaml -I `camlp4 -where`

   #load "camlp4r.cma";
   print_string "Hello\n";

When I try execute this script shell print next error:

   Fatal error: cannot find file /usr/bin/ocaml -I /usr/lib/ocaml/camlp4

How I can execute script witch revised syntax?

Artem Prysyznuk

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