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
RE: extensions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1998-07-10 (17:33)
From: Frank A. Christoph <christo@n...>
Subject: RE: extensions
>Can ocaml be made to compile files with extensions other than .ml?  I want
to >use both SML and ocaml and have Emacs go into the right mode based on
the file >extension (yes I know I can indicate the proper mode to Emacs by
putting >something in a comment).

Use the -impl option, e.g.,

  ocamlc -c -impl foo.caml

You can use -intf to compile interfaces too, but I bet you will have
problems unless interfaces end with .mli.

--FC