[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Pierre Weis <Pierre.Weis@i...> |
| Subject: | Re: Help with toplevel |
> Hi all,
>
> I new to ocaml but not to ml. I've installed ocaml 3.00 on my unix systems
> and my windows systems. On each of these platforms, I cannot use top level
> functions such as "use", "quit", etc.
>
> I've checked the sources in toplevel and the "functions" are defined, but
> for some reason they are not defined in my executables - so, I think that I
> am must not be doing something that I should (be doing).
>
> Help???????
>
> Robert
Have a look at the basic Objective Caml examples at adress
http://pauillac.inria.fr/caml/Examples/oc/basics/eng.html
Calling the Caml compiler:
to compile the file hello.ml to executable program a.out type
ocamlc hello.ml
to compile the file hello.ml to executable program hello type
ocamlc -o hello hello.ml
To try interactively: call the Caml interactive system
ocaml
Then type in (don't forget the initial # sign, that
indicates a directive)
#use "loadall.ml";;
Hope this helps,
Pierre Weis
INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/