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
Help with toplevel
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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

Calling the Caml compiler:
  to compile the file to executable program a.out type
  to compile the file to executable program hello type
    ocamlc -o hello

To try interactively: call the Caml interactive system

Then type in (don't forget the initial # sign, that
indicates a directive)

        #use "";;

Hope this helps,

Pierre Weis

INRIA, Projet Cristal,,