caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: William Smith <sesquized@sbcglobal.net>
To: caml-list@yquem.inria.fr
Subject: Re: OCaml on Windows help
Date: Mon, 22 Oct 2007 18:10:28 -0400	[thread overview]
Message-ID: <471D1FD4.6040908@sbcglobal.net> (raw)
In-Reply-To: <20071015080212.A2DD5BC73@yquem.inria.fr>

I ran into the same problem this week.

ml.exe is the executable name of the Microsoft assembler.  The error is 
confusing due to the coincidence that the assember's name is the same as 
the OCaml file extension.    It has nothing to do with trying to execute 
the test.ml file.

ocamlc was working because it doesn't need any of the Microsoft tools to 
build executable programs.

The INSTALL.win32 file is  a big help.   Once I installed the components 
it indicated, I'm able to use ocamlopt.   It was challenging though to 
get the windows executable and lib paths set correctly so that ocamlopt 
would use the tools it was designed for.  (I had several versions of 
many programs that were for other unrelated purposes.)  As best as I can 
tell, I also had to rebuild OCaml because I was using MSVC 6 and getting 
link errors.   I think this was due to ocamlopt trying to combine the 
released version of 3.10.0 with the run time libraries that I have which 
mixed versions of the MSVC libraries.

Bill

I installed OCaml on Windows XP (the MSVC version, since I assume that's 
faster than
> the Cygwin version?). I'm having trouble compiling OCaml programs from 
> the command line and I wonder if it's a bug or just my lack of Windows 
> knowledge.
>
> I created a sample program test.ml and here's what happens
>
> > ocamlopt -o test.exe test.ml
> -----------
> 'ml' is not recognized as an internal or external command,
> operable program or batch file
>
> Assembler error, input left in file....
-------------
> Please have a look to the INSTALL.win32 :
>   http://camlcvs.inria.fr/cgi-bin/cvsweb/ocaml/README.win32?rev=1.40
>
> You need to install additional software from MS


       reply	other threads:[~2007-10-22 22:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20071015080212.A2DD5BC73@yquem.inria.fr>
2007-10-22 22:10 ` William Smith [this message]
2007-10-23  7:38   ` [Caml-list] " David Allsopp
2007-10-14 13:14 Raj Bandyopadhyay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=471D1FD4.6040908@sbcglobal.net \
    --to=sesquized@sbcglobal.net \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).