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
[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 caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners