Loading ...
Sorry, an error occurred while loading the content.

Re: "ocaml_beginners"::[] Re: Using the interpreter with multiple .ml files

Expand Messages
  • Richard Jones
    ... This is not true. OCaml looks for the .cmi files in the search directories when compiling. Rich. -- Richard Jones Red Hat
    Message 1 of 10 , Nov 4, 2007
    • 0 Attachment
      On Sat, Nov 03, 2007 at 12:57:38PM -0400, Ashish Agarwal wrote:
      > > I have tried changing it to "ocamlc -c exp.cmo cas.ml"
      >
      > Also, you don't need to include the cmo file if you are just compiling.
      > ocamlc looks for cmo files in the current directory (and directories
      > included by the -I flag).

      This is not true. OCaml looks for the .cmi files in the search
      directories when compiling.

      Rich.

      --
      Richard Jones
      Red Hat
    • Ashish Agarwal
      ... Oops. Thanks for the correction. [Non-text portions of this message have been removed]
      Message 2 of 10 , Nov 4, 2007
      • 0 Attachment
        > > ocamlc looks for cmo files in the current directory (and directories
        > > included by the -I flag).
        >
        > This is not true. OCaml looks for the .cmi files in the search
        > directories when compiling.

        Oops. Thanks for the correction.


        [Non-text portions of this message have been removed]
      Your message has been successfully submitted and would be delivered to recipients shortly.