Hello, You can also use the OCaml REPL, rather than the compiler: $> ocaml file.ml
Regards Sylvain Le Gall On 26-09-2010, Chris King <[email protected]> wrote: > "#load" can only be used in the interactive shell. To link a program > with str.cma, simply include it on the command line: > > ocamlc -g -c file.ml > ocamlc -o my_program str.cma file.cmo > > Hope this helps! > > - Chris > > On Sun, Sep 26, 2010 at 8:35 AM, Ivo Seeba <[email protected]> wrote: >> In a command line it works well: >> C:\Documents and Settings\is>ocaml >> Objective Caml version 3.11.0 >> # #load "str.cma";; >> # >> but in a file.ml, where 75th line is '#load "str.cma"';;: >> C:\Documents and Settings\is\Desktop\ocaml>ocamlc -g -c .ml >> File "file.ml", line 75, characters 0-1: >> Error: Syntax error >> No information cannot found from google.com. Can anybody help me? >> -- -- You received this message because you are subscribed to the Google Groups "ocaml-developer" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ocaml-developer?hl=en For other OCaml forums, see http://caml.inria.fr/resources/forums.en.html
